* esp32 SerialBLEInterface: 1 second delay now applied before testing whether to re-start advertising

This commit is contained in:
Scott Powell 2025-02-26 20:53:31 +11:00
parent c01c2ed3ac
commit 54af8ad2a9
2 changed files with 13 additions and 10 deletions

View file

@ -12,10 +12,10 @@ class SerialBLEInterface : public BaseSerialInterface, BLESecurityCallbacks, BLE
BLECharacteristic * pTxCharacteristic;
bool deviceConnected;
bool oldDeviceConnected;
bool checkAdvRestart;
bool _isEnabled;
uint32_t _pin_code;
unsigned long _last_write;
unsigned long adv_restart_time;
struct Frame {
uint8_t len;
@ -53,7 +53,7 @@ public:
pService = NULL;
deviceConnected = false;
oldDeviceConnected = false;
checkAdvRestart = false;
adv_restart_time = 0;
_isEnabled = false;
_last_write = 0;
send_queue_len = recv_queue_len = 0;