void show_unofficial_warning(uint8_t *hash) { layoutDialog(&bmp_icon_warning, "Abort", "I'll take the risk", NULL, "WARNING!", NULL, "Unofficial firmware", "detected.", NULL, NULL); do { delay(100000); buttonUpdate(); } while (!button.YesUp && !button.NoUp); if (button.NoUp) { show_halt(); // no button was pressed -> halt } layoutFirmwareHash(hash); do { delay(100000); buttonUpdate(); } while (!button.YesUp && !button.NoUp); if (button.NoUp) { show_halt(); // no button was pressed -> halt } // everything is OK, user pressed 2x Continue -> continue program }
void show_unofficial_warning(const uint8_t *hash) { layoutDialog(&bmp_icon_warning, str_abort, str_continue, NULL, "WARNING!", NULL, "Unofficial fware.", "detected.", NULL, NULL,OLED_WHITE); do { delay(100000); buttonUpdate(); } while (!button.YesUp && !button.NoUp); if (button.NoUp) { show_halt(); // no button was pressed -> halt } layoutFirmwareHash(hash); do { delay(100000); buttonUpdate(); } while (!button.YesUp && !button.NoUp); if (button.NoUp) { show_halt(); // no button was pressed -> halt } // everything is OK, user pressed 2x Continue -> continue program }