Hack to fix the build with Os

This commit is contained in:
Romain Goyet
2015-09-25 15:18:40 +02:00
parent 54506e67db
commit 3726bc11cc

View File

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