From ad702096a97677eab5c1931d6f0d4a51e1a564a5 Mon Sep 17 00:00:00 2001 From: XScorpion2 Date: Fri, 21 Jan 2022 21:51:12 -0600 Subject: [Keyboard] Sol 3 Keyboard from RGBKB (#15687) Co-authored-by: Ryan Co-authored-by: Franklyn Tackitt --- keyboards/rgbkb/common/touch_encoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keyboards/rgbkb/common/touch_encoder.c') diff --git a/keyboards/rgbkb/common/touch_encoder.c b/keyboards/rgbkb/common/touch_encoder.c index 6293739ec9..1e6c54e8eb 100644 --- a/keyboards/rgbkb/common/touch_encoder.c +++ b/keyboards/rgbkb/common/touch_encoder.c @@ -292,7 +292,7 @@ void touch_encoder_calibrate(void) { write_register8(QT_CALIBRATE, 0x01); } -bool touch_encoder_calibrating(void) { +bool touch_encoder_is_calibrating(void) { return touch_raw[0] & CALIBRATION_BIT; } @@ -300,8 +300,8 @@ void touch_encoder_toggle(void) { touch_disabled = !touch_disabled; } -bool touch_encoder_toggled(void) { - return touch_disabled; +bool touch_encoder_is_on(void) { + return !touch_disabled; } void touch_encoder_slave_sync(uint8_t initiator2target_buffer_size, const void* initiator2target_buffer, uint8_t target2initiator_buffer_size, void* target2initiator_buffer) { -- cgit v1.2.3