unleashed-firmware/applications/main/bad_usb/scenes
Guacamolie 002e5cd9de
Bad USB: fix crash when selecting a keyboard layout (#3555)
Commit 6de2934 (BadUSB: BLE, media keys, Fn/Globe key commands (#3403),
2024-03-25) changed the life-cycle of the bad_usb_script object, so that
the bad_usb_script is allocated when entering the work scene, and freed
when going to the config scene. It also made it so that the keyboard
layout always gets reloaded when entering the work scene.

The logic of the layout config scene, however, assumes that it still
needs to reload the keyboard layout after selecting it. The keyboard
layout data is stored within bad_usb_script however, which is NULL when
within the layout config scene.

The fix is simple. Since we are now reload the keyboard layout anyway
when entering the work scene, we can just remove this extra call.

Resolves: #3552
2024-04-01 21:49:51 +09:00
..
bad_usb_scene.c [FL-2627] Flipper applications: SDK, build and debug system (#1387) 2022-09-15 02:21:03 +09:00
bad_usb_scene.h [FL-2627] Flipper applications: SDK, build and debug system (#1387) 2022-09-15 02:21:03 +09:00
bad_usb_scene_config.c BadUSB: BLE, media keys, Fn/Globe key commands (#3403) 2024-03-25 17:39:33 +09:00
bad_usb_scene_config.h BadUSB: Keyboard Layouts (#2256) 2023-02-09 00:01:00 +09:00
bad_usb_scene_config_layout.c Bad USB: fix crash when selecting a keyboard layout (#3555) 2024-04-01 21:49:51 +09:00
bad_usb_scene_error.c [FL-3770, FL-3680] HID App improvements and little extra (#3518) 2024-03-25 16:00:35 +09:00
bad_usb_scene_file_select.c BadUSB: BLE, media keys, Fn/Globe key commands (#3403) 2024-03-25 17:39:33 +09:00
bad_usb_scene_work.c BadUSB: BLE, media keys, Fn/Globe key commands (#3403) 2024-03-25 17:39:33 +09:00