Skip to content

Commit

Permalink
Adjust some code style for maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 authored and BenBE committed Apr 20, 2024
1 parent e0eed79 commit 784ef08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void Meter_setMode(Meter* this, MeterModeId modeIndex) {
return;
}

if (!modeIndex) {
if (modeIndex == 0) {
modeIndex = 1;
}

Expand All @@ -467,7 +467,7 @@ void Meter_setMode(Meter* this, MeterModeId modeIndex) {

ListItem* Meter_toListItem(const Meter* this, bool moving) {
char mode[20];
if (this->mode) {
if (this->mode > 0) {
xSnprintf(mode, sizeof(mode), " [%s]", Meter_modes[this->mode].uiName);
} else {
mode[0] = '\0';
Expand Down

0 comments on commit 784ef08

Please sign in to comment.