Cosmetics

This commit is contained in:
bsongis
2014-10-14 22:43:47 +02:00
parent 874156122d
commit 52040406a4
2 changed files with 4 additions and 8 deletions
+1 -4
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);
+3 -4
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;
}