mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Cosmetics
This commit is contained in:
parent
874156122d
commit
52040406a4
2 changed files with 4 additions and 8 deletions
|
@ -199,10 +199,7 @@ class AudioQueue {
|
|||
AudioBuffer * buffer = &buffers[idx];
|
||||
if (buffer->state == AUDIO_BUFFER_FILLED) {
|
||||
buffer->state = AUDIO_BUFFER_PLAYING;
|
||||
if (idx != bufferRIdx) {
|
||||
TRACEI_AUDIO_EVENT(1, audio_getNextFilledBuffer_skip, ((uint32_t)bufferRIdx << 8) + idx);
|
||||
bufferRIdx = idx;
|
||||
}
|
||||
bufferRIdx = idx;
|
||||
return buffer;
|
||||
}
|
||||
idx = nextBufferIdx(idx);
|
||||
|
|
|
@ -1304,15 +1304,14 @@ DRESULT disk_read (
|
|||
}
|
||||
} while ( count ) ;
|
||||
|
||||
if (!count) {
|
||||
IO_MUTEX_LEAVE();
|
||||
IO_MUTEX_LEAVE();
|
||||
|
||||
if (!count)
|
||||
return RES_OK;
|
||||
}
|
||||
|
||||
if (++sdErrorCount > 3)
|
||||
Card_state = SD_ST_ERR;
|
||||
|
||||
IO_MUTEX_LEAVE();
|
||||
return RES_ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue