add buggy extra config UI for bad usb (for implementing BLE and UART)

This commit is contained in:
yocvito
2023-01-01 02:17:40 +01:00
parent f808608135
commit 202596ad38
13 changed files with 302 additions and 36 deletions
+6 -2
View File
@@ -8,6 +8,10 @@
#include "bad_usb_script.h"
#include <dolphin/dolphin.h>
#include <furi_hal_bt_hid.h>
#include <furi_hal_bt.h>
#define TAG "BadUSB"
#define WORKER_TAG TAG "Worker"
#define FILE_BUFFER_LEN 16
@@ -720,7 +724,7 @@ void bad_usb_script_set_keyboard_layout(BadUsbScript* bad_usb, FuriString* layou
storage_file_free(layout_file);
}
void bad_usb_script_toggle(BadUsbScript* bad_usb) {
void bad_usb_script_toggle(BadUsbScript* bad_usb, BadUsbMode mode) {
furi_assert(bad_usb);
furi_thread_flags_set(furi_thread_get_id(bad_usb->thread), WorkerEvtToggle);
}
@@ -728,4 +732,4 @@ void bad_usb_script_toggle(BadUsbScript* bad_usb) {
BadUsbState* bad_usb_script_get_state(BadUsbScript* bad_usb) {
furi_assert(bad_usb);
return &(bad_usb->st);
}
}