Hopefully fixed problem with tone() blocking when it should be non-blocking
This commit is contained in:
parent
c5133eba8f
commit
f66b9f10f3
|
@ -186,7 +186,8 @@ void tone(uint32_t pin, uint32_t freq, uint32_t duration) {
|
||||||
pinMode(tone_pin, INPUT);
|
pinMode(tone_pin, INPUT);
|
||||||
|
|
||||||
}
|
}
|
||||||
while(tone_nhw) ; // blocks till duration elapsed
|
|
||||||
|
//while(tone_nhw) ; // blocks till duration elapsed
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue