From 34559fdee3a174a6a4c2c1469efe9802cf6e803c Mon Sep 17 00:00:00 2001 From: jgromes Date: Wed, 1 Apr 2020 14:02:25 +0200 Subject: [PATCH] [SSTV] Added missing calls to yield --- src/protocols/SSTV/SSTV.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/protocols/SSTV/SSTV.cpp b/src/protocols/SSTV/SSTV.cpp index dfbeea30..c3843ad8 100644 --- a/src/protocols/SSTV/SSTV.cpp +++ b/src/protocols/SSTV/SSTV.cpp @@ -262,5 +262,7 @@ uint16_t SSTVClient::getPictureHeight() { void SSTVClient::tone(float freq, uint32_t len) { uint32_t start = micros(); _phy->transmitDirect(_base + (freq / _phy->getFreqStep())); - while(micros() - start < len); + while(micros() - start < len) { + yield(); + } }