diff options
author | lokher <lokher@gmail.com> | 2022-09-22 17:33:56 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-09-22 17:33:56 +0800 |
commit | f67150f16cb0e5bc71dc3320750ff96ba99e96dc (patch) | |
tree | 559bf802f0737dac2e0d4892577818d10d7c9f39 /keyboards/keychron/bluetooth/lpm.c | |
parent | 9581289745736ce068a1040f44cec37a2ca8830d (diff) |
refactor indicator.c; fix LED/RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL related issue
Diffstat (limited to 'keyboards/keychron/bluetooth/lpm.c')
-rw-r--r-- | keyboards/keychron/bluetooth/lpm.c | 4 |
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(); } |