Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 165d654

Browse files
committed
fix bug in example CustomTimedThread when overriding shouldRun
1 parent fd9ebfe commit 165d654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)