Make lcd_wizard() more debug friendly.

This commit is contained in:
Marek Bel 2019-09-16 18:31:12 +02:00
parent b99038736c
commit 002a7d31a4

View File

@ -4669,6 +4669,10 @@ void lcd_wizard(WizState state)
bool end = false;
int wizard_event;
const char *msg = NULL;
// Make sure EEPROM_WIZARD_ACTIVE is true if entering using different entry point
// other than WizState::Run - it is useful for debugging wizard.
if (state != S::Run) eeprom_update_byte((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);
while (!end) {
printf_P(PSTR("Wizard state: %d\n"), state);
switch (state) {