(Typo) Conrol=>Control (#1266)

* Fix typo (Conrol=>Control)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Samuel Yvon 2022-05-23 16:57:49 -04:00 committed by GitHub
parent ca5c0d2d50
commit eb83b0f02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
typedef enum { typedef enum {
GpioStartEventOtgOff = 0, GpioStartEventOtgOff = 0,
GpioStartEventOtgOn, GpioStartEventOtgOn,
GpioStartEventManualConrol, GpioStartEventManualControl,
GpioStartEventUsbUart, GpioStartEventUsbUart,
GpioCustomEventErrorBack, GpioCustomEventErrorBack,

View File

@ -23,7 +23,7 @@ static void gpio_scene_start_var_list_enter_callback(void* context, uint32_t ind
furi_assert(context); furi_assert(context);
GpioApp* app = context; GpioApp* app = context;
if(index == GpioItemTest) { if(index == GpioItemTest) {
view_dispatcher_send_custom_event(app->view_dispatcher, GpioStartEventManualConrol); view_dispatcher_send_custom_event(app->view_dispatcher, GpioStartEventManualControl);
} else if(index == GpioItemUsbUart) { } else if(index == GpioItemUsbUart) {
view_dispatcher_send_custom_event(app->view_dispatcher, GpioStartEventUsbUart); view_dispatcher_send_custom_event(app->view_dispatcher, GpioStartEventUsbUart);
} }
@ -82,7 +82,7 @@ bool gpio_scene_start_on_event(void* context, SceneManagerEvent event) {
furi_hal_power_enable_otg(); furi_hal_power_enable_otg();
} else if(event.event == GpioStartEventOtgOff) { } else if(event.event == GpioStartEventOtgOff) {
furi_hal_power_disable_otg(); furi_hal_power_disable_otg();
} else if(event.event == GpioStartEventManualConrol) { } else if(event.event == GpioStartEventManualControl) {
scene_manager_set_scene_state(app->scene_manager, GpioSceneStart, GpioItemTest); scene_manager_set_scene_state(app->scene_manager, GpioSceneStart, GpioItemTest);
scene_manager_next_scene(app->scene_manager, GpioSceneTest); scene_manager_next_scene(app->scene_manager, GpioSceneTest);
} else if(event.event == GpioStartEventUsbUart) { } else if(event.event == GpioStartEventUsbUart) {