Skip to content

Commit 93ffe19

Browse files
committed
fix: conflicting led control
1 parent 7c1ab90 commit 93ffe19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void generalTask(void *pvParameters) {
372372
// Show connecting message when BLE is disconnected
373373
while (!bleKeyboard.isConnected()) {
374374
contentBottom = "Connecting BLE..";
375-
breathLEDAnimation();
375+
// breathLEDAnimation();
376376
checkIdle();
377377
delay(100);
378378
}
@@ -1202,7 +1202,7 @@ void checkBattery() {
12021202
void showLowBatteryWarning() {
12031203
if (!isLowBattery) {
12041204
if (bleKeyboard.isConnected()) {
1205-
if (isScreenDisabled || isScreenSleeping) {
1205+
if ((isScreenDisabled || isScreenSleeping) && !isLowBattery) {
12061206
tp.DotStar_SetPower(true);
12071207
tp.DotStar_SetBrightness(1);
12081208
tp.DotStar_SetPixelColor(0, 0, 255);

0 commit comments

Comments
 (0)