File tree 1 file changed +18
-0
lines changed
AxxSolder_firmware/Core/Src
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1192,6 +1192,15 @@ void handle_button_status(){
1192
1192
TIM2 -> CNT = flash_values .preset_temp_1 ;
1193
1193
}
1194
1194
}
1195
+ if (SW_2_pressed_long == 1 ){
1196
+ SW_2_pressed_long = 0 ;
1197
+ if (flash_values .three_button_mode == 0 ){
1198
+ flash_values .preset_temp_1 = TIM2 -> CNT ;
1199
+ FlashWrite (& flash_values );
1200
+ LCD_draw_main_screen ();
1201
+ sleep_state_written_to_LCD = 0 ;
1202
+ }
1203
+ }
1195
1204
/* Set "set temp" to preset temp 2 */
1196
1205
if (SW_3_pressed == 1 ){
1197
1206
SW_3_pressed = 0 ;
@@ -1205,6 +1214,15 @@ void handle_button_status(){
1205
1214
TIM2 -> CNT = flash_values .preset_temp_2 ;
1206
1215
}
1207
1216
}
1217
+ if (SW_3_pressed_long == 1 ){
1218
+ SW_3_pressed_long = 0 ;
1219
+ if (flash_values .three_button_mode == 0 ){
1220
+ flash_values .preset_temp_2 = TIM2 -> CNT ;
1221
+ FlashWrite (& flash_values );
1222
+ LCD_draw_main_screen ();
1223
+ sleep_state_written_to_LCD = 0 ;
1224
+ }
1225
+ }
1208
1226
}
1209
1227
1210
1228
/* Get the status of handle in/on stand to trigger SLEEP */
You can’t perform that action at this time.
0 commit comments