1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

Cosmetics

This commit is contained in:
bsongis 2014-10-14 22:23:24 +02:00
parent 874156122d
commit 52040406a4
2 changed files with 4 additions and 8 deletions

View file

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

View file

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