From f02aacfeb6147757df6e5754bed0947f916aa0f0 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Sat, 28 Jul 2012 11:22:24 -0500 Subject: [PATCH] Change the constant so LED flashing works properly on Revo --- flight/PiOS/Common/pios_flash_jedec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flight/PiOS/Common/pios_flash_jedec.c b/flight/PiOS/Common/pios_flash_jedec.c index ed4a6390b..4af779f1a 100644 --- a/flight/PiOS/Common/pios_flash_jedec.c +++ b/flight/PiOS/Common/pios_flash_jedec.c @@ -333,8 +333,11 @@ int32_t PIOS_Flash_Jedec_EraseChip() while(PIOS_Flash_Jedec_Busy() != 0) { #if defined(FLASH_FREERTOS) vTaskDelay(1); -#endif + if ((i++) % 100 == 0) +#else if ((i++) % 10000 == 0) +#endif + PIOS_LED_Toggle(PIOS_LED_HEARTBEAT); }