Update bad_usb_script.c to fix incorrect ALT key const #1406

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
t0m1o1 2022-07-17 10:56:47 +01:00 committed by GitHub
parent e7c3da1da9
commit 73711c75e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ static bool ducky_altchar(const char* charcode) {
FURI_LOG_I(WORKER_TAG, "char %s", charcode); FURI_LOG_I(WORKER_TAG, "char %s", charcode);
furi_hal_hid_kb_press(HID_KEYBOARD_L_ALT); furi_hal_hid_kb_press(KEY_MOD_LEFT_ALT);
while(!ducky_is_line_end(charcode[i])) { while(!ducky_is_line_end(charcode[i])) {
state = ducky_numpad_press(charcode[i]); state = ducky_numpad_press(charcode[i]);
@ -179,7 +179,7 @@ static bool ducky_altchar(const char* charcode) {
i++; i++;
} }
furi_hal_hid_kb_release(HID_KEYBOARD_L_ALT); furi_hal_hid_kb_release(KEY_MOD_LEFT_ALT);
return state; return state;
} }