File tree 1 file changed +8
-0
lines changed
AxxSolder_firmware/Core/Src
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ void settings_menu(){
606
606
if (HAL_GPIO_ReadPin (GPIOB , SW_1_Pin ) == 1 ){
607
607
settings_menu_active = 1 ;
608
608
609
+ UG_FillScreen (RGB_to_BRG (C_BLACK ));
609
610
char str [32 ];
610
611
memset (& str , '\0' , strlen (str ));
611
612
if ((flash_values .screen_rotation == 0 ) || (flash_values .screen_rotation == 2 )){
@@ -696,6 +697,7 @@ void settings_menu(){
696
697
}
697
698
else if ((HAL_GPIO_ReadPin (GPIOB , SW_1_Pin ) == 1 ) && (menu_cursor_position == menu_length - 1 )){
698
699
menu_active = 0 ;
700
+ HAL_NVIC_SystemReset ();
699
701
}
700
702
else if ((HAL_GPIO_ReadPin (GPIOB , SW_1_Pin ) == 1 ) && (menu_cursor_position == menu_length - 2 )){
701
703
menu_active = 0 ;
@@ -1205,6 +1207,12 @@ void handle_button_status(){
1205
1207
TIM2 -> CNT = flash_values .preset_temp_2 ;
1206
1208
}
1207
1209
}
1210
+ if (SW_1_pressed_long == 1 ){
1211
+ SW_1_pressed_long = 0 ;
1212
+ change_state (EMERGENCY_SLEEP );
1213
+ /* start settings menu */
1214
+ settings_menu ();
1215
+ }
1208
1216
}
1209
1217
1210
1218
/* Get the status of handle in/on stand to trigger SLEEP */
You can’t perform that action at this time.
0 commit comments