summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jael're <drashna@live.com>2020-02-14 10:37:22 -0800
committerFlorian Didron <fdidron@users.noreply.github.com>2020-02-26 10:15:12 +0900
commit41194bcbd30034bd26961b0f450bd8e150ca3e89 (patch)
treea237daa5af2494a6890b7d21f7ec5b114d16ab48
parent4885430361f16a905feb9cda4d7faac5de7813ab (diff)
Fix Live Training bug
Forget to check if the firmware is actually paired
-rw-r--r--quantum/oryx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c
index 65a68ee7a2..ddbe72bfa7 100644
--- a/quantum/oryx.c
+++ b/quantum/oryx.c
@@ -195,7 +195,7 @@ void oryx_layer_event(void) {
#endif
}
-bool is_oryx_live_training_enabled(void) { return oryx_state_live_training_enabled; }
+bool is_oryx_live_training_enabled(void) { return (oryx_state_live_training_enabled && webusb_state.paired); }
bool process_record_oryx(uint16_t keycode, keyrecord_t *record) {
if(is_oryx_live_training_enabled()) {