Skip to content

Commit 4bf4730

Browse files
authored
Merge pull request #297 from sivar2311/master
Fix timestamp bug
2 parents 6a7a3a3 + 8b1a3f9 commit 4bf4730

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Changelog
2+
## Version 2.10.2
3+
- Fixed Timestamp calculation
4+
5+
## Version 2.10.1
6+
- New Timestamp calculation
27

38
## Version 2.10.0
49
- Feature: Push Notification.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SinricPro
2-
version=2.10.1
2+
version=2.10.2
33
author=Boris Jaeger <[email protected]>
44
maintainer=Boris Jaeger <[email protected]>
55
sentence=Library for https://sinric.pro - simple way to connect your device to alexa

src/SinricProVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Version Configuration
77
#define SINRICPRO_VERSION_MAJOR 2
88
#define SINRICPRO_VERSION_MINOR 10
9-
#define SINRICPRO_VERSION_REVISION 1
9+
#define SINRICPRO_VERSION_REVISION 2
1010
#define SINRICPRO_VERSION STR(SINRICPRO_VERSION_MAJOR) "." STR(SINRICPRO_VERSION_MINOR) "." STR(SINRICPRO_VERSION_REVISION)
1111
#define SINRICPRO_VERSION_STR "SinricPro (v" SINRICPRO_VERSION ")"
1212
#define SINRICPRO_VERISON_INT SINRICPRO_VERSION_MAJOR * 1000000 + SINRICPRO_VERSION_MINOR * 1000 + SINRICPRO_VERSION_REVISION

src/Timestamp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ void Timestamp::update() {
1414
if (!timestamp_ms) return;
1515
uint32_t current_millis = millis();
1616
uint32_t diff_millis = current_millis - last_update;
17-
last_update = current_millis;
17+
timestamp_ms += diff_millis;
18+
last_update = current_millis;
1819
}

0 commit comments

Comments
 (0)