Skip to content

Commit

Permalink
bugfix remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
sstaub committed Jun 20, 2021
1 parent a35fe31 commit 9d528bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Ticker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "git",
"url": "https://github.com/sstaub/Ticker"
},
"version": "4.2.0",
"version": "4.3.0",
"frameworks": "arduino",
"platforms": "*"
}
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=Ticker
version=4.2.0
version=4.3.0
author=Stefan Staub
maintainer=Stefan Staub <email@domain.com>
sentence=A library for creating Tickers which can call repeating functions. Replaces delay() with non-blocking functions.
Expand Down

0 comments on commit 9d528bf

Please sign in to comment.