Corrected variables name's typos #1082
Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
parent
855f2584ab
commit
88cb90783d
@ -23,9 +23,9 @@ typedef enum {
|
|||||||
SubGhzCustomEventSceneExit,
|
SubGhzCustomEventSceneExit,
|
||||||
SubGhzCustomEventSceneStay,
|
SubGhzCustomEventSceneStay,
|
||||||
|
|
||||||
SubGhzCustomEventViewReceverOK,
|
SubGhzCustomEventViewReceiverOK,
|
||||||
SubGhzCustomEventViewReceverConfig,
|
SubGhzCustomEventViewReceiverConfig,
|
||||||
SubGhzCustomEventViewReceverBack,
|
SubGhzCustomEventViewReceiverBack,
|
||||||
|
|
||||||
SubGhzCustomEventViewReadRAWBack,
|
SubGhzCustomEventViewReadRAWBack,
|
||||||
SubGhzCustomEventViewReadRAWIDLE,
|
SubGhzCustomEventViewReadRAWIDLE,
|
||||||
|
@ -111,7 +111,7 @@ bool subghz_scene_receiver_on_event(void* context, SceneManagerEvent event) {
|
|||||||
|
|
||||||
if(event.type == SceneManagerEventTypeCustom) {
|
if(event.type == SceneManagerEventTypeCustom) {
|
||||||
switch(event.event) {
|
switch(event.event) {
|
||||||
case SubGhzCustomEventViewReceverBack:
|
case SubGhzCustomEventViewReceiverBack:
|
||||||
|
|
||||||
// Stop CC1101 Rx
|
// Stop CC1101 Rx
|
||||||
subghz->state_notifications = SubGhzNotificationStateIDLE;
|
subghz->state_notifications = SubGhzNotificationStateIDLE;
|
||||||
@ -134,13 +134,13 @@ bool subghz_scene_receiver_on_event(void* context, SceneManagerEvent event) {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
case SubGhzCustomEventViewReceverOK:
|
case SubGhzCustomEventViewReceiverOK:
|
||||||
subghz->txrx->idx_menu_chosen =
|
subghz->txrx->idx_menu_chosen =
|
||||||
subghz_view_receiver_get_idx_menu(subghz->subghz_receiver);
|
subghz_view_receiver_get_idx_menu(subghz->subghz_receiver);
|
||||||
scene_manager_next_scene(subghz->scene_manager, SubGhzSceneReceiverInfo);
|
scene_manager_next_scene(subghz->scene_manager, SubGhzSceneReceiverInfo);
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
case SubGhzCustomEventViewReceverConfig:
|
case SubGhzCustomEventViewReceiverConfig:
|
||||||
subghz->state_notifications = SubGhzNotificationStateIDLE;
|
subghz->state_notifications = SubGhzNotificationStateIDLE;
|
||||||
subghz->txrx->idx_menu_chosen =
|
subghz->txrx->idx_menu_chosen =
|
||||||
subghz_view_receiver_get_idx_menu(subghz->subghz_receiver);
|
subghz_view_receiver_get_idx_menu(subghz->subghz_receiver);
|
||||||
|
@ -181,7 +181,7 @@ bool subghz_view_receiver_input(InputEvent* event, void* context) {
|
|||||||
SubGhzViewReceiver* subghz_receiver = context;
|
SubGhzViewReceiver* subghz_receiver = context;
|
||||||
|
|
||||||
if(event->key == InputKeyBack && event->type == InputTypeShort) {
|
if(event->key == InputKeyBack && event->type == InputTypeShort) {
|
||||||
subghz_receiver->callback(SubGhzCustomEventViewReceverBack, subghz_receiver->context);
|
subghz_receiver->callback(SubGhzCustomEventViewReceiverBack, subghz_receiver->context);
|
||||||
} else if(
|
} else if(
|
||||||
event->key == InputKeyUp &&
|
event->key == InputKeyUp &&
|
||||||
(event->type == InputTypeShort || event->type == InputTypeRepeat)) {
|
(event->type == InputTypeShort || event->type == InputTypeRepeat)) {
|
||||||
@ -199,13 +199,13 @@ bool subghz_view_receiver_input(InputEvent* event, void* context) {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
} else if(event->key == InputKeyLeft && event->type == InputTypeShort) {
|
} else if(event->key == InputKeyLeft && event->type == InputTypeShort) {
|
||||||
subghz_receiver->callback(SubGhzCustomEventViewReceverConfig, subghz_receiver->context);
|
subghz_receiver->callback(SubGhzCustomEventViewReceiverConfig, subghz_receiver->context);
|
||||||
} else if(event->key == InputKeyOk && event->type == InputTypeShort) {
|
} else if(event->key == InputKeyOk && event->type == InputTypeShort) {
|
||||||
with_view_model(
|
with_view_model(
|
||||||
subghz_receiver->view, (SubGhzViewReceiverModel * model) {
|
subghz_receiver->view, (SubGhzViewReceiverModel * model) {
|
||||||
if(model->history_item != 0) {
|
if(model->history_item != 0) {
|
||||||
subghz_receiver->callback(
|
subghz_receiver->callback(
|
||||||
SubGhzCustomEventViewReceverOK, subghz_receiver->context);
|
SubGhzCustomEventViewReceiverOK, subghz_receiver->context);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user