diff --git a/Ticker.cpp b/Ticker.cpp index 4b5e591..1046979 100755 --- a/Ticker.cpp +++ b/Ticker.cpp @@ -103,10 +103,7 @@ uint32_t Ticker::elapsed() { } uint32_t Ticker::remaining() { - if (resolution == MILLIS) { - return timer / 1000 - elapsed(); - } - else return timer - elapsed(); + return timer - elapsed(); } status_t Ticker::state() { diff --git a/library.json b/library.json index bdcf33e..b044843 100755 --- a/library.json +++ b/library.json @@ -7,7 +7,7 @@ "type": "git", "url": "https://github.com/sstaub/Ticker" }, - "version": "4.2.0", + "version": "4.3.0", "frameworks": "arduino", "platforms": "*" } diff --git a/library.properties b/library.properties index b1a4dba..08943f0 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Ticker -version=4.2.0 +version=4.3.0 author=Stefan Staub maintainer=Stefan Staub sentence=A library for creating Tickers which can call repeating functions. Replaces delay() with non-blocking functions.