Update safe_mode.c

This commit is contained in:
microDev 2020-09-13 23:17:14 +05:30 committed by GitHub
parent 36da92075b
commit 506bb097f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ safe_mode_t wait_for_safe_mode_reset(void) {
// Blink on for 100, off for 100, on for 100, off for 100 and on for 200
common_hal_digitalio_digitalinout_set_value(&status_led, diff > 100 && diff / 100 != 2 && diff / 100 != 4);
#endif
#ifdef CIRCUITPY_BOOT_BUTTON
#ifdef CIRCUITPY_BOOT_BUTTON
if (!common_hal_digitalio_digitalinout_get_value(&boot_button)) {
return USER_SAFE_MODE;
}
@ -188,4 +188,4 @@ void print_safe_mode_message(safe_mode_t reason) {
break;
}
serial_write_compressed(FILE_AN_ISSUE);
}
}