chore: fix build warnings from compiler-flagged always-true/dead-code issues (#7697)
Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Peter Feerick
Claude Sonnet 5
parent
5d69da66fe
commit
a5ac9bf06b
@@ -220,7 +220,7 @@ void ledChargingInfo(uint16_t chargeState) {
|
||||
ledIdx = LED_CHARGING_START;
|
||||
else
|
||||
ledIdx += LED_CHARGING_START > LED_CHARGING_END ? -1 : 1;
|
||||
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
|
||||
for (int i = 0; i < LED_STRIP_LENGTH; i++) {
|
||||
uint8_t green = 0;
|
||||
if (CHARGE_FINISHED == chargeState) {
|
||||
if (LED_CHARGING_START > LED_CHARGING_END && i <= LED_CHARGING_START && i >= LED_CHARGING_END)
|
||||
|
||||
Reference in New Issue
Block a user