From 7377cde320a2352a6f1123ed39bca3671872e3b9 Mon Sep 17 00:00:00 2001 From: Werner Johansson Date: Sat, 20 Dec 2014 00:18:10 -0800 Subject: [PATCH] Remove unused variable warning --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 6b76c10..da7995f 100644 --- a/src/main.c +++ b/src/main.c @@ -200,9 +200,13 @@ int main(void) { Buzzer_Beep( BUZZ_1KHZ, 255, TICKS_MS(100) ); while(1) { +#ifdef ENABLE_SLEEP int32_t sleeptime; sleeptime=Sched_Do( 0 ); // No fast-forward support //printf("\n%d ticks 'til next activity"),sleeptime); +#else + Sched_Do( 0 ); // No fast-forward support +#endif } return 0; }