enter_deepsleep: stop senddata early
This commit is contained in:
parent
46d32f8cfe
commit
457d46529b
@ -89,6 +89,9 @@ void enter_deepsleep(const uint64_t wakeup_sec = 60,
|
|||||||
|
|
||||||
RTC_runmode = RUNMODE_SLEEP;
|
RTC_runmode = RUNMODE_SLEEP;
|
||||||
|
|
||||||
|
// stop further enqueuing of senddata and MAC processing
|
||||||
|
sendTimer.detach();
|
||||||
|
|
||||||
// switch off radio
|
// switch off radio
|
||||||
#if (WIFICOUNTER)
|
#if (WIFICOUNTER)
|
||||||
switch_wifi_sniffer(0);
|
switch_wifi_sniffer(0);
|
||||||
@ -98,8 +101,7 @@ void enter_deepsleep(const uint64_t wakeup_sec = 60,
|
|||||||
btStop();
|
btStop();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// stop further enqueuing of senddata and MAC processing
|
// stop MAC processing
|
||||||
sendTimer.detach();
|
|
||||||
vTaskDelete(macProcessTask);
|
vTaskDelete(macProcessTask);
|
||||||
|
|
||||||
// halt interrupts accessing i2c bus
|
// halt interrupts accessing i2c bus
|
||||||
|
Loading…
Reference in New Issue
Block a user