From 7911dd927fb1771a30c89c989e742bbd43c2eff4 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 26 Jun 2012 10:18:48 +0000 Subject: [PATCH] companion9x compilation --- src/ersky9x/audio.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ersky9x/audio.cpp b/src/ersky9x/audio.cpp index 9da5f38e8..87075de7f 100644 --- a/src/ersky9x/audio.cpp +++ b/src/ersky9x/audio.cpp @@ -76,13 +76,16 @@ extern uint16_t Sine_values[]; void audioTask(void* pdata) { +#ifndef SIMU static FIL wavFile; +#endif while (1) { CoWaitForSingleFlag(audioFlag, 0); audioState = 1; // TODO #define +#ifndef SIMU if (toneWavFile[0]) { FRESULT result = FR_OK; uint16_t bufsize = 2*WAV_BUFFER_SIZE; @@ -116,7 +119,9 @@ void audioTask(void* pdata) } #endif } - else if (toneTimeLeft > 0) { + else +#endif + if (toneTimeLeft > 0) { CoSetTmrCnt(audioTimer, toneTimeLeft, 0); toneTimeLeft = 0; // TODO function for that ...