mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-01-19 00:03:33 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
2c068d08dd
@ -1089,7 +1089,7 @@ void console_task(void) {
|
|||||||
uint8_t buffer[CONSOLE_EPSIZE];
|
uint8_t buffer[CONSOLE_EPSIZE];
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
do {
|
do {
|
||||||
size_t size = chnReadTimeout(&drivers.console_driver.driver, buffer, sizeof(buffer), TIME_IMMEDIATE);
|
size = chnReadTimeout(&drivers.console_driver.driver, buffer, sizeof(buffer), TIME_IMMEDIATE);
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
console_receive(buffer, size);
|
console_receive(buffer, size);
|
||||||
}
|
}
|
||||||
@ -1117,7 +1117,7 @@ void raw_hid_task(void) {
|
|||||||
uint8_t buffer[RAW_EPSIZE];
|
uint8_t buffer[RAW_EPSIZE];
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
do {
|
do {
|
||||||
size_t size = chnReadTimeout(&drivers.raw_driver.driver, buffer, sizeof(buffer), TIME_IMMEDIATE);
|
size = chnReadTimeout(&drivers.raw_driver.driver, buffer, sizeof(buffer), TIME_IMMEDIATE);
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
raw_hid_receive(buffer, size);
|
raw_hid_receive(buffer, size);
|
||||||
}
|
}
|
||||||
@ -1203,7 +1203,7 @@ void midi_ep_task(void) {
|
|||||||
uint8_t buffer[MIDI_STREAM_EPSIZE];
|
uint8_t buffer[MIDI_STREAM_EPSIZE];
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
do {
|
do {
|
||||||
size_t size = chnReadTimeout(&drivers.midi_driver.driver, buffer, sizeof(buffer), TIME_IMMEDIATE);
|
size = chnReadTimeout(&drivers.midi_driver.driver, buffer, sizeof(buffer), TIME_IMMEDIATE);
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
MIDI_EventPacket_t event;
|
MIDI_EventPacket_t event;
|
||||||
recv_midi_packet(&event);
|
recv_midi_packet(&event);
|
||||||
|
Loading…
Reference in New Issue
Block a user