From ed1cbad3e79f57dff3cda1fb567ef7c2385e1b49 Mon Sep 17 00:00:00 2001 From: Drashna Jael're Date: Wed, 15 Jan 2020 19:47:21 -0800 Subject: [PATCH] Disable live training if other webusb commands are sent --- quantum/oryx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: