Skip to content

Commit 74b3437

Browse files
committed
v1.7.1
- remove ringer auto cancel #11
1 parent efd91ca commit 74b3437

File tree

4 files changed

+3
-20
lines changed

4 files changed

+3
-20
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.7.0",
3+
"version": "1.7.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.7.0
2+
version=1.7.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: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ ChronosESP32::ChronosESP32()
5353

5454
_infoTimer.duration = 3 * 1000; // 3 seconds for info timer
5555
_findTimer.duration = 30 * 1000; // 30 seconds for find phone
56-
_ringerTimer.duration = 30 * 1000; // 30 seconds for ringer alert
5756
}
5857

5958
/*!
@@ -182,18 +181,6 @@ void ChronosESP32::loop()
182181
}
183182
}
184183

185-
if (_ringerTimer.active)
186-
{
187-
if (_ringerTimer.time + _ringerTimer.duration < millis())
188-
{
189-
// ring timer end
190-
_ringerTimer.active = false;
191-
if (ringerAlertCallback != nullptr)
192-
{
193-
ringerAlertCallback("", false);
194-
}
195-
}
196-
}
197184
}
198185

199186
/*!
@@ -1039,8 +1026,6 @@ void ChronosESP32::dataReceived()
10391026

10401027
if (icon == 0x01)
10411028
{
1042-
_ringerTimer.time = millis();
1043-
_ringerTimer.active = true;
10441029
// ringer command
10451030
if (ringerAlertCallback != nullptr)
10461031
{
@@ -1050,7 +1035,6 @@ void ChronosESP32::dataReceived()
10501035
}
10511036
if (icon == 0x02)
10521037
{
1053-
_ringerTimer.active = false;
10541038
// cancel ringer command
10551039
if (ringerAlertCallback != nullptr)
10561040
{

src/ChronosESP32.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
#define CHRONOSESP_VERSION_MAJOR 1
4141
#define CHRONOSESP_VERSION_MINOR 7
42-
#define CHRONOSESP_VERSION_PATCH 0
42+
#define CHRONOSESP_VERSION_PATCH 1
4343

4444
#define CHRONOSESP_VERSION F(CHRONOSESP_VERSION_MAJOR "." CHRONOSESP_VERSION_MINOR "." CHRONOSESP_VERSION_PATCH)
4545

@@ -360,7 +360,6 @@ class ChronosESP32 : public BLEServerCallbacks, public BLECharacteristicCallback
360360

361361
ChronosTimer _infoTimer;
362362
ChronosTimer _findTimer;
363-
ChronosTimer _ringerTimer;
364363

365364
ChronosData _incomingData;
366365
ChronosData _outgoingData;

0 commit comments

Comments
 (0)