From 3726bc11cce27e7d84376b48c3d47d53dcd6f395 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 25 Sep 2015 15:18:40 +0200 Subject: [PATCH] Hack to fix the build with Os --- ion/src/device/display/st7586.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ion/src/device/display/st7586.c b/ion/src/device/display/st7586.c index 6432e2b97..cc50de375 100644 --- a/ion/src/device/display/st7586.c +++ b/ion/src/device/display/st7586.c @@ -32,7 +32,8 @@ typedef struct { static void perform_instruction(st7586_t * c, instruction_t instruction) { if (instruction.mode == DELAY_MODE) { // FIXME: Should sleep instruction->payload miliseconds - for (int i = 0; i < 800*instruction.payload; i++) { + // FIXME: This can be optimized away by the compiler! + for (volatile int i = 0; i < 800*instruction.payload; i++) { } } else { c->data_command_pin_write(instruction.mode);