Skip to content

Commit

Permalink
set ok unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 18, 2024
1 parent eda62ee commit d510163
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/ncursesInt/RF24Gateway_ncursesInt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,13 @@ int main()
wclear(renewPad);
mvwprintw(renewPad, 0, 0, "*Renewing Address*");
prefresh(renewPad, 0, 0, 3, 26, 4, 55);
if (mesh.renewAddress() != MESH_DEFAULT_ADDRESS)
ok = mesh.renewAddress() != MESH_DEFAULT_ADDRESS;
if (ok)
{
ok = true;
wclear(renewPad);
prefresh(renewPad, 0, 0, 3, 26, 4, 55);
}
else {
ok = false;
}
}
mesh_timer = millis();
}
Expand Down

0 comments on commit d510163

Please sign in to comment.