mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-03 04:49:59 -07:00
BT Remote: Add Rename Option, simplify Bad KB BLE profile (#439)
* [BLE Remote] Add Rename Option Adds an option to rename the advertised Bluetooth device. Closes #410. * Fix formatting * Revert changes to firmware Copies some of the firmware code to modify it, rather than directly modifying it in the firmware. * Fix compile error for USB transport * Similar concept for BadKB too * Save to setting file, polish the edges a bit * Fix LSP warning * Update changelog --------- Co-authored-by: WillyJL <me@willyjl.dev>
This commit is contained in:
@@ -257,7 +257,7 @@ static bool ducky_set_usb_id(BadUsbScript* bad_usb, const char* line) {
|
||||
}
|
||||
|
||||
static bool ducky_set_ble_id(BadUsbScript* bad_usb, const char* line) {
|
||||
BleProfileHidParams* ble_hid_cfg = &bad_usb->hid_cfg->ble;
|
||||
BleProfileHidExtParams* ble_hid_cfg = &bad_usb->hid_cfg->ble;
|
||||
|
||||
size_t line_len = strlen(line);
|
||||
size_t mac_len = sizeof(ble_hid_cfg->mac) * 3; // 2 hex chars + separator per byte
|
||||
|
||||
Reference in New Issue
Block a user