Merge branch 'fz-dev' into dev

This commit is contained in:
MX 2022-12-01 22:00:58 +03:00
commit 45d6826fa0
No known key found for this signature in database
GPG Key ID: 6C4C311DFD4B4AB5
6 changed files with 8 additions and 7 deletions

View File

@ -136,6 +136,7 @@ Header,+,lib/libusb_stm32/inc/hid_usage_simulation.h,,
Header,+,lib/libusb_stm32/inc/hid_usage_sport.h,,
Header,+,lib/libusb_stm32/inc/hid_usage_telephony.h,,
Header,+,lib/libusb_stm32/inc/hid_usage_vr.h,,
Header,-,lib/libusb_stm32/inc/stm32_compat.h,,
Header,+,lib/libusb_stm32/inc/usb.h,,
Header,+,lib/libusb_stm32/inc/usb_cdc.h,,
Header,+,lib/libusb_stm32/inc/usb_cdca.h,,

1 entry status name type params
136 Header + lib/libusb_stm32/inc/hid_usage_sport.h
137 Header + lib/libusb_stm32/inc/hid_usage_telephony.h
138 Header + lib/libusb_stm32/inc/hid_usage_vr.h
139 Header - lib/libusb_stm32/inc/stm32_compat.h
140 Header + lib/libusb_stm32/inc/usb.h
141 Header + lib/libusb_stm32/inc/usb_cdc.h
142 Header + lib/libusb_stm32/inc/usb_cdca.h

View File

@ -34,13 +34,13 @@ static const uint8_t hid_u2f_report_desc[] = {
HID_COLLECTION(HID_APPLICATION_COLLECTION),
HID_USAGE(HID_FIDO_INPUT),
HID_LOGICAL_MINIMUM(0x00),
HID_LOGICAL_MAXIMUM(0xFF),
HID_RI_LOGICAL_MAXIMUM(16, 0xFF),
HID_REPORT_SIZE(8),
HID_REPORT_COUNT(HID_U2F_PACKET_LEN),
HID_INPUT(HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE),
HID_USAGE(HID_FIDO_OUTPUT),
HID_LOGICAL_MINIMUM(0x00),
HID_LOGICAL_MAXIMUM(0xFF),
HID_RI_LOGICAL_MAXIMUM(16, 0xFF),
HID_REPORT_SIZE(8),
HID_REPORT_COUNT(HID_U2F_PACKET_LEN),
HID_OUTPUT(HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE),

View File

@ -10,8 +10,6 @@ extern "C" {
#endif
#define HID_KEYBOARD_NONE 0x00
// Remapping the colon key which is shift + ; to comma
#define HID_KEYBOARD_COMMA HID_KEYBOARD_COLON
/** HID keyboard modifier keys */
enum HidKeyboardMods {

@ -1 +1 @@
Subproject commit 6a88ec4d7709ca8605b5ec3e609057c330ca2a70
Subproject commit 9168e2a31db946326fb84016a74ea2ab5bf87f54

View File

@ -131,7 +131,9 @@ void ibutton_worker_switch_mode(iButtonWorker* worker, iButtonWorkerMode mode) {
void ibutton_worker_notify_emulate(iButtonWorker* worker) {
iButtonMessage message = {.type = iButtonMessageNotifyEmulate};
furi_check(furi_message_queue_put(worker->messages, &message, 0) == FuriStatusOk);
// we're running in an interrupt context, so we can't wait
// and we can drop message if queue is full, that's ok for that message
furi_message_queue_put(worker->messages, &message, 0);
}
void ibutton_worker_set_key_p(iButtonWorker* worker, iButtonKey* key) {

View File

@ -222,8 +222,8 @@ void ibutton_worker_emulate_dallas_start(iButtonWorker* worker) {
memcpy(device_id, key_id, key_size);
onewire_slave_attach(worker->slave, worker->device);
onewire_slave_start(worker->slave);
onewire_slave_set_result_callback(worker->slave, onewire_slave_callback, worker);
onewire_slave_start(worker->slave);
}
void ibutton_worker_emulate_dallas_stop(iButtonWorker* worker) {