mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Fix issue where stop command is issued when seeking the current tilt position #239
This commit is contained in:
parent
1b35c7d835
commit
01895d0ec5
7 changed files with 89 additions and 65 deletions
|
|
@ -6,6 +6,13 @@
|
|||
/*********************************************************************
|
||||
* Timestamp class members
|
||||
********************************************************************/
|
||||
unsigned long Timestamp::epoch() {
|
||||
struct tm tmNow;
|
||||
time_t now;
|
||||
if(!getLocalTime(&tmNow)) return 0;
|
||||
time(&now);
|
||||
return now;
|
||||
}
|
||||
time_t Timestamp::now() {
|
||||
struct tm tmNow;
|
||||
getLocalTime(&tmNow);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue