libpax integration 1 (work in progress)
This commit is contained in:
parent
5836e713b5
commit
049048dd6e
@ -29,9 +29,11 @@ void doHousekeeping() {
|
||||
ESP_LOGD(TAG, "IRQhandler %d bytes left | Taskstate = %d",
|
||||
uxTaskGetStackHighWaterMark(irqHandlerTask),
|
||||
eTaskGetState(irqHandlerTask));
|
||||
#if !(LIBPAX)
|
||||
ESP_LOGD(TAG, "MACprocessor %d bytes left | Taskstate = %d",
|
||||
uxTaskGetStackHighWaterMark(macProcessTask),
|
||||
eTaskGetState(macProcessTask));
|
||||
#endif
|
||||
ESP_LOGD(TAG, "Rcommand interpreter %d bytes left | Taskstate = %d",
|
||||
uxTaskGetStackHighWaterMark(rcmdTask), eTaskGetState(rcmdTask));
|
||||
#if (HAS_LORA)
|
||||
@ -136,11 +138,11 @@ uint32_t getFreeRAM() {
|
||||
void reset_counters() {
|
||||
|
||||
#if ((WIFICOUNTER) || (BLECOUNTER))
|
||||
#if !(LIBPAX)
|
||||
#if !(LIBPAX)
|
||||
macs.clear(); // clear all macs container
|
||||
macs_wifi = 0;
|
||||
macs_ble = 0;
|
||||
renew_salt(); // get new salt
|
||||
renew_salt(); // get new salt
|
||||
#endif
|
||||
#ifdef HAS_DISPLAY
|
||||
dp_plotCurve(0, true);
|
||||
|
@ -107,7 +107,7 @@ void enter_deepsleep(const uint64_t wakeup_sec, gpio_num_t wakeup_gpio) {
|
||||
sendTimer.detach();
|
||||
|
||||
// switch off radio and other power consuming hardware
|
||||
#if !(LIBPAX)
|
||||
#if !(LIBPAX)
|
||||
#if (WIFICOUNTER)
|
||||
switch_wifi_sniffer(0);
|
||||
#endif
|
||||
@ -120,8 +120,10 @@ void enter_deepsleep(const uint64_t wakeup_sec, gpio_num_t wakeup_gpio) {
|
||||
sds011_sleep(void);
|
||||
#endif
|
||||
|
||||
#if !(LIBPAX)
|
||||
// stop MAC processing
|
||||
vTaskDelete(macProcessTask);
|
||||
#endif
|
||||
|
||||
// halt interrupts accessing i2c bus
|
||||
mask_user_IRQ();
|
||||
|
@ -104,4 +104,4 @@ void switch_wifi_sniffer(uint8_t state) {
|
||||
esp_wifi_stop();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif // !(LIBPAX)
|
Loading…
Reference in New Issue
Block a user