Skip to content

Commit 2259d16

Browse files
authored
Merge pull request ivanseidel#34 from mitosch/master
fix bug in example CustomTimedThread when overriding shouldRun
2 parents fd9ebfe + 165d654 commit 2259d16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/CustomTimedThread/CustomTimedThread.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public:
113113
"Old" default Thread method 'shouldRun' return if
114114
it should run.
115115
*/
116-
bool shouldRun(long time){
116+
bool shouldRun(unsigned long time){
117117
// Override enabled on thread when pin goes LOW.
118118
if(digitalRead(pin) == LOW){
119119
enabled = true;

0 commit comments

Comments
 (0)