Skip to content

Commit

Permalink
Merge pull request #196 from airgradienthq/hotfix/led-bar-show-sensor…
Browse files Browse the repository at this point in the history
…-data-incorrect

Correct LED bar show sensor value level color
  • Loading branch information
airgradienthq authored Jul 25, 2024
2 parents 6a0d88f + 9097eed commit 6c1c914
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AgStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

#define RGB_COLOR_R 255, 0, 0 /** Red */
#define RGB_COLOR_G 0, 255, 0 /** Green */
#define RGB_COLOR_Y 255, 255, 0 /** Yellow */
#define RGB_COLOR_O 255, 165, 0 /** Organge */
#define RGB_COLOR_P 160, 32, 240 /** Purple */
#define RGB_COLOR_Y 255, 150, 0 /** Yellow */
#define RGB_COLOR_O 255, 40, 0 /** Orange */
#define RGB_COLOR_P 180, 0, 255 /** Purple */

/**
* @brief Animation LED bar with color
Expand Down Expand Up @@ -573,7 +573,7 @@ void StateMachine::handleLeds(AgStateMachineState state) {
case AgStateMachineWiFiManagerMode: {
/** In WiFi Manager Mode */
/** Turn LED OFF */
/** Turn midle LED Color */
/** Turn middle LED Color */
if (ag->isOne()) {
ag->ledBar.setColor(0, 0, 255, ag->ledBar.getNumberOfLeds() / 2);
} else {
Expand Down Expand Up @@ -713,7 +713,7 @@ void StateMachine::handleLeds(AgStateMachineState state) {
break;
}
case AgStateMachineSensorConfigFailed: {
/** Server is reachable but there is some configuration issue to be fixed on
/** Server is reachable but there is some configuration issue to be fixed on
* the server side */
if (ag->isOne()) {
ag->ledBar.setColor(139, 24, 248, 0);
Expand Down

0 comments on commit 6c1c914

Please # to comment.