Skip to content

Commit 3ef8274

Browse files
Hopefully fixed problem with tone() blocking when it should be non-blocking
1 parent b64fce0 commit 3ef8274

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

STM32F1/cores/maple/tone.cpp

+2-1
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)