mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-17 13:22:53 +01:00
Press reset then hold boot for self test (#617)
Co-authored-by: Benjamin Wilson <admin@opensourceminer.com>
This commit is contained in:
parent
fd11e42ab6
commit
39a4c4164a
@ -56,8 +56,10 @@ void app_main(void)
|
||||
return;
|
||||
}
|
||||
|
||||
// Optionally hold the boot button
|
||||
bool pressed = gpio_get_level(CONFIG_GPIO_BUTTON_BOOT) == 0; // LOW when pressed
|
||||
//should we run the self test?
|
||||
if (should_test(&GLOBAL_STATE)) {
|
||||
if (should_test(&GLOBAL_STATE) || pressed) {
|
||||
self_test((void *) &GLOBAL_STATE);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user