summaryrefslogtreecommitdiff
path: root/keyboards/rgbkb/common
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2022-02-25 23:45:40 +0000
committerzvecr <git@zvecr.com>2022-02-25 23:45:40 +0000
commite7931289918221081cbe2a7ea5df27a5d86324db (patch)
tree0b06145520f8aaf5ff5cb928aa5176fc2dd23619 /keyboards/rgbkb/common
parentc0ee3d2c79388187883b1b1b1d1a0b6842acf741 (diff)
parentcf31355f08dca311a013168eb3eb995e2fc6a3d1 (diff)
Merge remote-tracking branch 'origin/develop'
Diffstat (limited to 'keyboards/rgbkb/common')
-rw-r--r--keyboards/rgbkb/common/touch_encoder.c6
-rw-r--r--keyboards/rgbkb/common/touch_encoder.h4
2 files changed, 5 insertions, 5 deletions
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) {
diff --git a/keyboards/rgbkb/common/touch_encoder.h b/keyboards/rgbkb/common/touch_encoder.h
index 022f619063..bc9a9ccb7f 100644
--- a/keyboards/rgbkb/common/touch_encoder.h
+++ b/keyboards/rgbkb/common/touch_encoder.h
@@ -34,10 +34,10 @@ void touch_encoder_init(void);
void touch_encoder_update(int8_t transaction_id);
void touch_encoder_calibrate(void);
-bool touch_encoder_calibrating(void);
+bool touch_encoder_is_calibrating(void);
void touch_encoder_toggle(void);
-bool touch_encoder_toggled(void);
+bool touch_encoder_is_on(void);
// Called when touch encoder is tapped, weak function overridable by the kb
bool touch_encoder_tapped_kb(uint8_t index, uint8_t section);