[SSTV] Added missing calls to yield
This commit is contained in:
parent
8701492959
commit
34559fdee3
1 changed files with 3 additions and 1 deletions
|
@ -262,5 +262,7 @@ uint16_t SSTVClient::getPictureHeight() {
|
||||||
void SSTVClient::tone(float freq, uint32_t len) {
|
void SSTVClient::tone(float freq, uint32_t len) {
|
||||||
uint32_t start = micros();
|
uint32_t start = micros();
|
||||||
_phy->transmitDirect(_base + (freq / _phy->getFreqStep()));
|
_phy->transmitDirect(_base + (freq / _phy->getFreqStep()));
|
||||||
while(micros() - start < len);
|
while(micros() - start < len) {
|
||||||
|
yield();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue