summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/bluetooth/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/bluetooth/lpm.c')
-rw-r--r--keyboards/keychron/bluetooth/lpm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/keychron/bluetooth/lpm.c b/keyboards/keychron/bluetooth/lpm.c
index 84f629a672..62e78d03b1 100644
--- a/keyboards/keychron/bluetooth/lpm.c
+++ b/keyboards/keychron/bluetooth/lpm.c
@@ -41,7 +41,11 @@ static matrix_row_t empty_matrix[MATRIX_ROWS] = {0};
void lpm_init(void) {
#ifdef USB_POWER_SENSE_PIN
+# if (USB_POWER_CONNECTED_LEVEL == 0)
setPinInputHigh(USB_POWER_SENSE_PIN);
+# else
+ setPinInputLow(USB_POWER_SENSE_PIN);
+# endif
#endif
lpm_timer_reset();
}