8000 Hopefully fixed problem with tone() blocking when it should be non-bl… · ArduinoWorks/Arduino_STM32@f66b9f1 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 /div>

Commit f66b9f1

Browse files
Hopefully fixed problem with tone() blocking when it should be non-blocking
1 parent c5133eb commit f66b9f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

STM32F1/cores/maple/tone.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ void tone(uint32_t pin, uint32_t freq, uint32_t duration) {
186186
pinMode(tone_pin, INPUT);
187187

188188
}
189-
while(tone_nhw) ; // blocks till duration elapsed
189+
190+
//while(tone_nhw) ; // blocks till duration elapsed
190191
}
191192

192193
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)
0