Fix Live Training bug

Forget to check if the firmware is actually paired
This commit is contained in:
Drashna Jael're
2020-02-14 10:37:22 -08:00
committed by Florian Didron
parent 4885430361
commit 41194bcbd3
+1 -1
View File
@@ -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()) {