mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* esp32 SerialBLEInterface: 1 second delay now applied before testing whether to re-start advertising
This commit is contained in:
parent
c01c2ed3ac
commit
54af8ad2a9
2 changed files with 13 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue