From c82efc428f1418a2569e218cffb6023d4c0a03a9 Mon Sep 17 00:00:00 2001 From: Kimball Johnson Date: Sun, 22 May 2016 16:07:45 +0000 Subject: [PATCH] Fix preprocessor elif, GFX_CPU == duplicated --- src/gos/gos_x_threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gos/gos_x_threads.c b/src/gos/gos_x_threads.c index fa084d8e..4fc66588 100644 --- a/src/gos/gos_x_threads.c +++ b/src/gos/gos_x_threads.c @@ -265,7 +265,7 @@ static thread mainthread; // The main thread context gfxThreadExit(current->fn(current->param)); } -#elif GFX_CPU == GFX_CPU == GFX_CPU_CORTEX_M4_FP || GFX_CPU == GFX_CPU_CORTEX_M7_FP +#elif GFX_CPU == GFX_CPU_CORTEX_M4_FP || GFX_CPU == GFX_CPU_CORTEX_M7_FP // Use the EABI calling standard (ARM's AAPCS) - Save r4 - r11 and floating point // The context is saved at the current stack location and a pointer is maintained in the thread structure.