From 39a4c4164ae2f5474d1a891ec02d4cfa0251903c Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Sun, 5 Jan 2025 17:08:47 -0500 Subject: [PATCH] Press reset then hold boot for self test (#617) Co-authored-by: Benjamin Wilson --- main/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index ac60bfd95..eeff4dc02 100644 --- a/main/main.c +++ b/main/main.c @@ -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; }