@@ -289,7 +289,7 @@ void subghz_read_raw_draw(Canvas* canvas, SubGhzReadRAWModel* model) {
289
289
canvas_set_color (canvas , ColorBlack );
290
290
canvas_set_font (canvas , FontSecondary );
291
291
canvas_draw_str (canvas , 0 , 9 , furi_string_get_cstr (model -> frequency_str ));
292
- canvas_draw_str (canvas , 35 , 9 , furi_string_get_cstr (model -> preset_str ));
292
+ canvas_draw_str (canvas , 35 , 9 , furi_string_get_cstr (model -> preset_str ));
293
293
canvas_draw_str_aligned (
294
294
canvas , 106 , 2 , AlignRight , AlignTop , furi_string_get_cstr (model -> sample_write ));
295
295
@@ -337,6 +337,12 @@ void subghz_read_raw_draw(Canvas* canvas, SubGhzReadRAWModel* model) {
337
337
elements_button_center (canvas , "REC" );
338
338
break ;
339
339
340
+ case SubGhzReadRAWStatusREC :
341
+ elements_button_left (canvas , "Freq-" );
342
+ elements_button_center (canvas , "Stop" );
343
+ elements_button_right (canvas , "Freq+" );
344
+ break ;
345
+
340
346
default :
341
347
elements_button_center (canvas , "Stop" );
342
348
break ;
@@ -451,6 +457,9 @@ bool subghz_read_raw_input(InputEvent* event, void* context) {
451
457
if (model -> status == SubGhzReadRAWStatusStart ) {
452
458
//Config
453
459
instance -> callback (SubGhzCustomEventViewReadRAWConfig , instance -> context );
460
+ } else if (model -> status == SubGhzReadRAWStatusREC ) {
461
+ //Freq-
462
+ instance -> callback (SubGhzCustomEventViewReadRAWFreqMinus , instance -> context );
454
463
} else if (
455
464
(model -> status == SubGhzReadRAWStatusIDLE ) ||
456
465
(model -> status == SubGhzReadRAWStatusLoadKeyIDLE )) {
@@ -472,6 +481,9 @@ bool subghz_read_raw_input(InputEvent* event, void* context) {
472
481
if (model -> status == SubGhzReadRAWStatusIDLE ) {
473
482
//Save
474
483
instance -> callback (SubGhzCustomEventViewReadRAWSave , instance -> context );
484
+ } else if (model -> status == SubGhzReadRAWStatusREC ) {
485
+ //Freq+
486
+ instance -> callback (SubGhzCustomEventViewReadRAWFreqPlus , instance -> context );
475
487
} else if (model -> status == SubGhzReadRAWStatusLoadKeyIDLE ) {
476
488
//More
477
489
instance -> callback (SubGhzCustomEventViewReadRAWMore , instance -> context );
0 commit comments