diff options
Diffstat (limited to 'keyboards/planck/ez/ez.c')
-rw-r--r-- | keyboards/planck/ez/ez.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index fdb470b2e2..1e8a9d4e12 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -247,11 +247,11 @@ uint32_t layer_state_set_kb(uint32_t state) { planck_ez_right_led_off(); state = layer_state_set_user(state); uint8_t layer = biton32(state); -#ifdef WEBUSB_ENABLE - if(webusb_state.paired == true) { +#ifdef ORXY_ENABLE + if(is_oryx_live_training_enabled()) { uint8_t event[4]; event[0] = WEBUSB_STATUS_OK; - event[1] = WEBUSB_EVT_LAYER; + event[1] = ORYX_EVT_LAYER; event[2] = layer; event[3] = WEBUSB_STOP_BIT; webusb_send(event, sizeof(event)); @@ -275,11 +275,11 @@ uint32_t layer_state_set_kb(uint32_t state) { } bool process_record_kb(uint16_t keycode, keyrecord_t *record) { -#ifdef WEBUSB_ENABLE - if(webusb_state.paired == true) { +#ifdef ORYX_ENABLE + if(is_oryx_live_training_enabled()) { uint8_t event[5]; event[0] = WEBUSB_STATUS_OK; - event[1] = record->event.pressed ? WEBUSB_EVT_KEYDOWN : WEBUSB_EVT_KEYUP; + event[1] = record->event.pressed ? ORYX_EVT_KEYDOWN : ORYX_EVT_KEYUP; event[2] = record->event.key.col; event[3] = record->event.key.row; event[4] = WEBUSB_STOP_BIT; |