Skip to content
Snippets Groups Projects
Commit bc596d3c authored by Sevan Janiyan's avatar Sevan Janiyan
Browse files

reform2-keyboard4-fw: hook in r for SOM reset

Issues the '2p' command to LPC when 'r' is pressed on the menu.
parent 195ea9d3
No related branches found
No related tags found
No related merge requests found
Pipeline #3437 failed
...@@ -126,6 +126,10 @@ int execute_menu_function(int keycode) { ...@@ -126,6 +126,10 @@ int execute_menu_function(int keycode) {
// reset the MCU // reset the MCU
rp2040_reset(); rp2040_reset();
} }
else if (keycode == KEY_R) {
// reset the SOM
remote_reset_som();
}
else if (keycode == KEY_T) { else if (keycode == KEY_T) {
render_tina(); render_tina();
logo_timeout_ticks = 10; logo_timeout_ticks = 10;
......
...@@ -294,6 +294,11 @@ int remote_turn_off_som() { ...@@ -294,6 +294,11 @@ int remote_turn_off_som() {
return 1; return 1;
} }
int remote_reset_som() {
remote_try_command("2p\r", 0);
return 1;
}
int remote_wake_som() { int remote_wake_som() {
remote_try_command("1w\r", 0); remote_try_command("1w\r", 0);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment