diff --git a/firmware/controllers/flash_main.cpp b/firmware/controllers/flash_main.cpp index a406e5cdf2..6c1d97f26a 100644 --- a/firmware/controllers/flash_main.cpp +++ b/firmware/controllers/flash_main.cpp @@ -76,8 +76,6 @@ void writeToFlashIfPending() { writeToFlashNow(); } -extern uint32_t maxLockTime; - void writeToFlashNow(void) { scheduleMsg(logger, " !!!!!!!!!!!!!!!!!!!! BE SURE NOT WRITE WITH IGNITION ON !!!!!!!!!!!!!!!!!!!!"); persistentState.size = PERSISTENT_SIZE; @@ -99,7 +97,6 @@ void writeToFlashNow(void) { scheduleMsg(logger, "Flashing failed"); } assertEngineReference(PASS_ENGINE_PARAMETER_SIGNATURE); - maxLockTime = 0; resetMaxValues(); } diff --git a/firmware/development/engine_sniffer.cpp b/firmware/development/engine_sniffer.cpp index 87b8e67756..2883055b56 100644 --- a/firmware/development/engine_sniffer.cpp +++ b/firmware/development/engine_sniffer.cpp @@ -44,7 +44,7 @@ static histogram_s engineSnifferHisto; EXTERN_ENGINE ; -extern uint32_t maxLockTime; +extern uint32_t maxLockedDuration; /** * This is the number of events in the digital chart which would be displayed @@ -114,7 +114,7 @@ static void printStatus(void) { static void setChartActive(int value) { engineConfiguration->isEngineChartEnabled = value; printStatus(); - maxLockTime = 0; + maxLockedDuration = 0; } void setChartSize(int newSize) {