Format code according to conventions (#16322)

This commit is contained in:
QMK Bot authored and GitHub committed 2022-02-12 18:29:31 +00:00
1 parent afcdd7079c
commit 63646e8906
345 files changed
+4916 -3229

No files matched your search

+8 -3
View File
@@ -60,12 +60,17 @@ void midi_device_init(MidiDevice* device) {
void midi_device_input(MidiDevice* device, uint8_t cnt, uint8_t* input) {
uint8_t i;
for (i = 0; i < cnt; i++) bytequeue_enqueue(&device->input_queue, input[i]);
for (i = 0; i < cnt; i++)
bytequeue_enqueue(&device->input_queue, input[i]);
}
void midi_device_set_send_func(MidiDevice* device, midi_var_byte_func_t send_func) { device->send_func = send_func; }
void midi_device_set_send_func(MidiDevice* device, midi_var_byte_func_t send_func) {
device->send_func = send_func;
}
void midi_device_set_pre_input_process_func(MidiDevice* device, midi_no_byte_func_t pre_process_func) { device->pre_input_process_callback = pre_process_func; }
void midi_device_set_pre_input_process_func(MidiDevice* device, midi_no_byte_func_t pre_process_func) {
device->pre_input_process_callback = pre_process_func;
}
void midi_device_process(MidiDevice* device) {
// call the pre_input_process_callback if there is one