Hopefully fixed problem with tone() blocking when it should be non-blocking

This commit is contained in:
Roger Clark 2017-12-10 17:07:57 +11:00
parent c5133eba8f
commit f66b9f10f3
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ void tone(uint32_t pin, uint32_t freq, uint32_t duration) {
pinMode(tone_pin, INPUT);
}
while(tone_nhw) ; // blocks till duration elapsed
//while(tone_nhw) ; // blocks till duration elapsed
}
////////////////////////////////////////////////////////////////////////////////