Skip to content

Commit

Permalink
fix: conflicting led control
Browse files Browse the repository at this point in the history
  • Loading branch information
DriftKingTW committed Mar 20, 2023
1 parent 7c1ab90 commit 93ffe19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void generalTask(void *pvParameters) {
// Show connecting message when BLE is disconnected
while (!bleKeyboard.isConnected()) {
contentBottom = "Connecting BLE..";
breathLEDAnimation();
// breathLEDAnimation();
checkIdle();
delay(100);
}
Expand Down Expand Up @@ -1202,7 +1202,7 @@ void checkBattery() {
void showLowBatteryWarning() {
if (!isLowBattery) {
if (bleKeyboard.isConnected()) {
if (isScreenDisabled || isScreenSleeping) {
if ((isScreenDisabled || isScreenSleeping) && !isLowBattery) {
tp.DotStar_SetPower(true);
tp.DotStar_SetBrightness(1);
tp.DotStar_SetPixelColor(0, 0, 255);
Expand Down

0 comments on commit 93ffe19

Please sign in to comment.