diff options
author | Drashna Jael're <drashna@live.com> | 2020-01-15 19:47:21 -0800 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-02-26 10:15:12 +0900 |
commit | ed1cbad3e79f57dff3cda1fb567ef7c2385e1b49 (patch) | |
tree | 29e7ac45e93df0cf997a44d0a97bc0dc9a607550 /quantum | |
parent | 2feb42ddb0de261c6568c65f6918f51cbb871b50 (diff) |
Disable live training if other webusb commands are sent
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/oryx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c index dc6c39e178..cf1223d0a5 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -5,6 +5,7 @@ bool oryx_state_live_training_enabled; bool webusb_receive_oryx(uint8_t *data, uint8_t length) { uint8_t command = data[0]; uint8_t *param = &(data[1]); + oryx_state_live_training_enabled = false; switch (command) { case ORYX_GET_LAYER: @@ -12,7 +13,7 @@ bool webusb_receive_oryx(uint8_t *data, uint8_t length) { return true; case ORYX_CMD_LIVE_TRAINING: { uint8_t event[4]; - switch (param[0]) { // 0 for state, 1 for off, 2 for on + switch (param[0]) { // 0 for querying, 1 for off, 2 for on case 0: break; case 1: |