summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k8_pro
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/k8_pro')
-rw-r--r--keyboards/keychron/k8_pro/ansi/white/config.h3
-rw-r--r--keyboards/keychron/k8_pro/halconf.h1
-rw-r--r--keyboards/keychron/k8_pro/iso/white/config.h2
-rw-r--r--keyboards/keychron/k8_pro/k8_pro.c15
4 files changed, 5 insertions, 16 deletions
diff --git a/keyboards/keychron/k8_pro/ansi/white/config.h b/keyboards/keychron/k8_pro/ansi/white/config.h
index bf96d09309..57483be6b3 100644
--- a/keyboards/keychron/k8_pro/ansi/white/config.h
+++ b/keyboards/keychron/k8_pro/ansi/white/config.h
@@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#ifdef LED_MATRIX_ENABLE
/* LED matrix driver configuration */
# define DRIVER_COUNT 1
@@ -65,5 +67,4 @@
/* Set LED driver current */
# define CKLED2001_CURRENT_TUNE { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60 }
-
#endif
diff --git a/keyboards/keychron/k8_pro/halconf.h b/keyboards/keychron/k8_pro/halconf.h
index 577334a345..fafd0c1fed 100644
--- a/keyboards/keychron/k8_pro/halconf.h
+++ b/keyboards/keychron/k8_pro/halconf.h
@@ -21,6 +21,7 @@
#ifdef KC_BLUETOOTH_ENABLE
# define PAL_USE_CALLBACKS TRUE
# define HAL_USE_SERIAL TRUE
+# define HAL_USE_RTC TRUE
#endif
#include_next <halconf.h>
diff --git a/keyboards/keychron/k8_pro/iso/white/config.h b/keyboards/keychron/k8_pro/iso/white/config.h
index 12dadbf202..57483be6b3 100644
--- a/keyboards/keychron/k8_pro/iso/white/config.h
+++ b/keyboards/keychron/k8_pro/iso/white/config.h
@@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#ifdef LED_MATRIX_ENABLE
/* LED matrix driver configuration */
# define DRIVER_COUNT 1
diff --git a/keyboards/keychron/k8_pro/k8_pro.c b/keyboards/keychron/k8_pro/k8_pro.c
index d6ae6a649f..f8b4f6d99e 100644
--- a/keyboards/keychron/k8_pro/k8_pro.c
+++ b/keyboards/keychron/k8_pro/k8_pro.c
@@ -234,21 +234,6 @@ void bluetooth_pre_task(void) {
}
}
}
-
-void battery_measure(void) {
-# ifdef LED_MATRIX_ENABLE
- if (led_matrix_is_enabled()) {
- ckbt51_read_state_reg(0x05, 0x02);
- return;
- }
-# endif
-# ifdef RGB_MATRIX_ENABLE
- if (rgb_matrix_is_enabled()) {
- ckbt51_read_state_reg(0x05, 0x02);
- return;
- }
-# endif
-}
#endif
void battery_calculte_voltage(uint16_t value) {