1
0
Fork 0
mirror of https://github.com/EdgeTX/edgetx.git synced 2025-07-26 09:45:16 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2019-11-07 13:58:56 +01:00
parent 3f0ce109ad
commit 50a07dc8d8
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
3 changed files with 3 additions and 4 deletions

View file

@ -755,7 +755,7 @@ void AudioQueue::wakeup()
DEBUG_TIMER_STOP(debugTimerAudioConsume); DEBUG_TIMER_STOP(debugTimerAudioConsume);
AudioBuffer * buffer; AudioBuffer * buffer;
while ((buffer = buffersFifo.getEmptyBuffer()) != 0) { while ((buffer = buffersFifo.getEmptyBuffer()) != nullptr) {
int result; int result;
unsigned int fade = 0; unsigned int fade = 0;
int size = 0; int size = 0;

View file

@ -90,8 +90,7 @@ void dacInit()
void audioConsumeCurrentBuffer() void audioConsumeCurrentBuffer()
{ {
if (nextBuffer == 0) { if (!nextBuffer) {
nextBuffer = audioQueue.buffersFifo.getNextFilledBuffer(); nextBuffer = audioQueue.buffersFifo.getNextFilledBuffer();
if (nextBuffer) { if (nextBuffer) {
#if defined(AUDIO_MUTE_GPIO_PIN) #if defined(AUDIO_MUTE_GPIO_PIN)

View file

@ -374,7 +374,7 @@ void audioInit()
audioHardReset(); audioHardReset();
audioSoftReset(); audioSoftReset();
audioSpiSetSpeed(SPI_SPEED_8); audioSpiSetSpeed(SPI_SPEED_8);
delay_01us(10000); // 1ms delay_ms(1); // 1ms
audioSendRiffHeader(); audioSendRiffHeader();
} }