From f66b9f10f387e468e3cfb96517beb17911941b3d Mon Sep 17 00:00:00 2001 From: Roger Clark Date: Sun, 10 Dec 2017 17:07:57 +1100 Subject: [PATCH] Hopefully fixed problem with tone() blocking when it should be non-blocking --- STM32F1/cores/maple/tone.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/STM32F1/cores/maple/tone.cpp b/STM32F1/cores/maple/tone.cpp index 45cfa0e..b249a78 100644 --- a/STM32F1/cores/maple/tone.cpp +++ b/STM32F1/cores/maple/tone.cpp @@ -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 } ////////////////////////////////////////////////////////////////////////////////