Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
- minor fix
  • Loading branch information
fbiego committed Nov 26, 2024
1 parent a75dc9d commit e06f950
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ChronosESP32",
"version": "1.5.0",
"version": "1.5.1",
"keywords": "Arduino, ESP32, Time, BLE, Watch",
"description": "A library for ESP32 to interface with Chronos app over BLE",
"repository":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ChronosESP32
version=1.5.0
version=1.5.1
author=fbiego
maintainer=fbiego
sentence=Setup your ESP32 as a smartwatch and connect to Chronos app over BLE.
Expand Down
6 changes: 5 additions & 1 deletion src/ChronosESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ void ChronosESP32::loop()
_batteryChanged = false;
sendBattery();
}
if (_sendESP){
_sendESP = false;
sendESP();
}
}

if (_ringerTimer.active)
Expand Down Expand Up @@ -1249,7 +1253,7 @@ void ChronosESP32::dataReceived()
{
configurationReceivedCallback(CF_APP, _appCode, 0);
}
sendESP();
_sendESP = true;
}
break;
case 0xEE:
Expand Down
1 change: 1 addition & 0 deletions src/ChronosESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ class ChronosESP32 : public BLEServerCallbacks, public BLECharacteristicCallback
uint8_t _phoneBatteryLevel = 0;
bool _phoneCharging;
bool _notifyPhone = true;
bool _sendESP;

Notification _notifications[NOTIF_SIZE];
int _notificationIndex;
Expand Down

0 comments on commit e06f950

Please sign in to comment.