diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-02-05 17:29:43 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-02-05 17:30:11 +0100 |
| commit | 75991f63b5a061592d57b59a9c4f46a078d19406 (patch) | |
| tree | f8122f7d557f3ed2439e50b12675b48d0de5fcdd /src/main.c | |
| parent | d19f5ce8b56e1199eb9e20ba83b38f8e3e915437 (diff) | |
| download | sxkbd-75991f63b5a061592d57b59a9c4f46a078d19406.tar.gz sxkbd-75991f63b5a061592d57b59a9c4f46a078d19406.zip | |
Forward warning from slave to master and dont call hid and cdc tasks on slave
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -42,10 +42,12 @@ main(void) start = board_millis(); while (true) { tud_task(); - cdc_task(); led_task(); split_task(); - hid_task(); + if (split_role == MASTER) { + cdc_task(); + hid_task(); + } stop = board_millis(); DEBUG("Main loop: %i ms", stop - start); @@ -141,8 +143,6 @@ process_cmd(char *cmd) loglevel = LOG_INFO; } else if (!strcmp(arg, "warn")) { loglevel = LOG_WARN; - } else if (!strcmp(arg, "err")) { - loglevel = LOG_ERR; } else { printf("Invalid log level\n"); } |
