[SSTV] Added missing calls to yield

pull/142/head
jgromes 2020-04-01 14:02:25 +02:00
rodzic 8701492959
commit 34559fdee3
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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();
}
}