From a38fbe6cea0ba3dca56c58f83e0db8b0bdff8672 Mon Sep 17 00:00:00 2001 From: zedamota Date: Sat, 14 May 2011 19:03:31 +0100 Subject: [PATCH] Make CopterControl firmware non functional when using the ERASE_FLASH=YES compile flag --- flight/CopterControl/System/coptercontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flight/CopterControl/System/coptercontrol.c b/flight/CopterControl/System/coptercontrol.c index 588fa4a9f..060fb3646 100644 --- a/flight/CopterControl/System/coptercontrol.c +++ b/flight/CopterControl/System/coptercontrol.c @@ -92,6 +92,7 @@ void OpenPilotInit() #ifdef ERASE_FLASH PIOS_Flash_W25X_EraseChip(); + while(TRUE){}; #endif /* Initialize modules */