From 814d31d70d59237a96e831026476cf1804e892fe Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Tue, 7 Aug 2018 18:50:11 +0200 Subject: [PATCH] Remove factory_reset() unused quiet parameter and make it static. It was tested, that both calls of factory reset (from menu and via PRUSA FR command) works somehow. Fix compiler warning: sketch/Marlin_main.cpp:808:6: warning: unused parameter 'quiet' [-Wunused-parameter] --- Firmware/Marlin_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 2056ad65..c4f5833b 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -803,9 +803,8 @@ void failstats_reset_print() // Factory reset function // This function is used to erase parts or whole EEPROM memory which is used for storing calibration and and so on. // Level input parameter sets depth of reset -// Quiet parameter masks all waitings for user interact. int er_progress = 0; -void factory_reset(char level, bool quiet) +static void factory_reset(char level) { lcd_clear(); switch (level) { @@ -967,7 +966,7 @@ if((eSoundMode==e_SOUND_MODE_LOUD)||(eSoundMode==e_SOUND_MODE_ONCE)) _delay_ms(2000); char level = reset_menu(); - factory_reset(level, false); + factory_reset(level); switch (level) { case 0: _delay_ms(0); break; @@ -3525,7 +3524,7 @@ void process_commands() } else if(code_seen("FR")) { // Factory full reset - factory_reset(0,true); + factory_reset(0); } //else if (code_seen('Cal')) { // lcd_calibration();