Implement Read-Only OLED Status UI
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "local_display.h"
|
||||
#include "local_status_ui.h"
|
||||
|
||||
#define BUTTON_POLL_MS 10U
|
||||
#define BUTTON_DEBOUNCE_MS 30U
|
||||
@@ -412,6 +413,10 @@ static int command_display(int argc, char **argv)
|
||||
print_display_usage();
|
||||
return argc < 2 || argc == 2 ? 0 : 1;
|
||||
}
|
||||
|
||||
/* Keep diagnostic output visible instead of immediately redrawing status pages. */
|
||||
local_status_ui_hold_for_diagnostics();
|
||||
|
||||
if (strcmp(argv[1], "status") == 0) {
|
||||
return command_display_status(argc - 1, argv + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user