Skip to content

Commit e06f950

Browse files
committed
1.5.1
- minor fix
1 parent a75dc9d commit e06f950

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ChronosESP32",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"keywords": "Arduino, ESP32, Time, BLE, Watch",
55
"description": "A library for ESP32 to interface with Chronos app over BLE",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ChronosESP32
2-
version=1.5.0
2+
version=1.5.1
33
author=fbiego
44
maintainer=fbiego
55
sentence=Setup your ESP32 as a smartwatch and connect to Chronos app over BLE.

src/ChronosESP32.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ void ChronosESP32::loop()
174174
_batteryChanged = false;
175175
sendBattery();
176176
}
177+
if (_sendESP){
178+
_sendESP = false;
179+
sendESP();
180+
}
177181
}
178182

179183
if (_ringerTimer.active)
@@ -1249,7 +1253,7 @@ void ChronosESP32::dataReceived()
12491253
{
12501254
configurationReceivedCallback(CF_APP, _appCode, 0);
12511255
}
1252-
sendESP();
1256+
_sendESP = true;
12531257
}
12541258
break;
12551259
case 0xEE:

src/ChronosESP32.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ class ChronosESP32 : public BLEServerCallbacks, public BLECharacteristicCallback
326326
uint8_t _phoneBatteryLevel = 0;
327327
bool _phoneCharging;
328328
bool _notifyPhone = true;
329+
bool _sendESP;
329330

330331
Notification _notifications[NOTIF_SIZE];
331332
int _notificationIndex;

0 commit comments

Comments
 (0)