From 152198515cb52ca9f92f4c792cd4ec9caff85b8f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 14 Jun 2021 15:26:43 +0200 Subject: [PATCH] Buildfix --- src/boards/eeprom_93C66.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/boards/eeprom_93C66.c b/src/boards/eeprom_93C66.c index c52e602..9f793ec 100644 --- a/src/boards/eeprom_93C66.c +++ b/src/boards/eeprom_93C66.c @@ -87,7 +87,12 @@ void eeprom_93C66_write (uint8 CS, uint8 CLK, uint8 DAT) eeprom_93C66_state = STATE_FINISHED; break; case OPCODE_ERASEALL: - if (eeprom_93C66_writeEnabled) for (int i =0; i <512; i++) eeprom_93C66_storage[i] = 0xFF; + if (eeprom_93C66_writeEnabled) + { + int i; + for (i =0; i <512; i++) + eeprom_93C66_storage[i] = 0xFF; + } eeprom_93C66_state = STATE_FINISHED; break; case OPCODE_WRITEALL: