Device validation

This commit is contained in:
Ben V. Brown
2022-06-21 20:52:05 +10:00
parent 51ad2f71c7
commit 85f30f2da6
5 changed files with 437 additions and 434 deletions

View File

@@ -897,9 +897,12 @@ static void showPDDebug(void) {
void showWarnings() {
// Display alert if settings were reset
if (settingsWereReset) {
warnUser(translatedString(Tr->SettingsResetMessage), 10 * TICKS_SECOND);
}
if (getDeviceValidationStatus()) {
// Warn user this device might be counterfeit
warnUser(translatedString(Tr->DeviceFailedValidationWarning), 10 * TICKS_SECOND);
}
#ifndef NO_WARN_MISSING
// We also want to alert if accel or pd is not detected / not responding
// In this case though, we dont want to nag the user _too_ much