Fix compile and check issues

This commit is contained in:
Thomas Göttgens 2025-08-19 14:47:14 +02:00 committed by Tom Fifield
parent 285b30dff0
commit 15b84fca01
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,8 @@
#include "gps/RTC.h" #include "gps/RTC.h"
#include <WiFi.h> #include <WiFi.h>
#if !defined(MESHTASTIC_EXCLUDE_BLUETOOTH)
#include "NimBLEDevice.h" #include "NimBLEDevice.h"
#define BLE_MAX_REC 15 #define BLE_MAX_REC 15
@ -416,3 +418,5 @@ static int ble_scan(uint32_t duration, bool passive, bool dedup)
return rc; return rc;
} }
#endif // MESHTASTIC_EXCLUDE_BLUETOOTH

View File

@ -63,7 +63,7 @@ class ZPSModule : public SinglePortModule, private concurrency::OSThread
private: private:
// outbound data packet staging buffer and record counter // outbound data packet staging buffer and record counter
uint64_t netData[ZPS_DATAPKT_MAXITEMS + 2]; uint64_t netData[ZPS_DATAPKT_MAXITEMS + 2] = {0};
uint8_t netRecs = 0; uint8_t netRecs = 0;
// mini state machine to alternate between BSS(Wifi) and BLE scanning // mini state machine to alternate between BSS(Wifi) and BLE scanning