Fix sleep problem reported by Gary Stofer.

This commit is contained in:
Henrik Ekblad
2015-04-18 20:57:15 +02:00
parent a68350af28
commit e30dea71ff
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -711,8 +711,8 @@ bool MySensor::sleep(uint8_t interrupt, uint8_t mode, unsigned long ms) {
return false;
} else {
#endif
radio.powerDown();
return hw.sleep(interrupt, mode, ms) ;
radio.powerDown();
return hw.sleep(interrupt, mode, ms) ;
#ifdef MY_OTA_FIRMWARE_FEATURE
}
#endif