23
23
24
24
#include "Version.h" // Auto generated by bot
25
25
#include "MyConfig.h"
26
- #ifdef MY_SIGNING_FEATURE
27
- #include "MySigning.h"
28
- #include "MySigningNone.h"
29
- #endif
30
26
#include "MyMessage.h"
31
27
#ifdef MY_OTA_FIRMWARE_FEATURE
32
28
#include "drivers/SPIFlash/SPIFlash.h"
@@ -184,6 +180,7 @@ void wait(unsigned long ms);
184
180
* @param ms Number of milliseconds to sleep.
185
181
*/
186
182
void sleep (unsigned long ms );
183
+ void smartSleep (unsigned long ms );
187
184
188
185
/**
189
186
* Sleep (PowerDownMode) the MCU and radio. Wake up on timer or pin change.
@@ -195,6 +192,7 @@ void sleep(unsigned long ms);
195
192
* @return true if wake up was triggered by pin change and false means timer woke it up.
196
193
*/
197
194
bool sleep (uint8_t interrupt , uint8_t mode , unsigned long ms = 0 );
195
+ bool smartSleep (uint8_t interrupt , uint8_t mode , unsigned long ms = 0 );
198
196
199
197
/**
200
198
* Sleep (PowerDownMode) the MCU and radio. Wake up on timer or pin change for two separate interrupts.
@@ -208,6 +206,7 @@ bool sleep(uint8_t interrupt, uint8_t mode, unsigned long ms=0);
208
206
* @return Interrupt number wake up was triggered by pin change and negative if timer woke it up.
209
207
*/
210
208
int8_t sleep (uint8_t interrupt1 , uint8_t mode1 , uint8_t interrupt2 , uint8_t mode2 , unsigned long ms = 0 );
209
+ int8_t smartSleep (uint8_t interrupt1 , uint8_t mode1 , uint8_t interrupt2 , uint8_t mode2 , unsigned long ms = 0 );
211
210
212
211
213
212
/****** PRIVATE ********/
0 commit comments