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);