Skip to content

Commit

Permalink
Remove breaks; from switch
Browse files Browse the repository at this point in the history
- Per @2bndy5 in #240
  • Loading branch information
TMRh20 committed Jun 16, 2024
1 parent 4938382 commit 97c5f3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RF24Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ bool ESBMesh<network_t, radio_t>::checkConnection()

int16_t result = getAddress(_nodeID);
switch (result) {
case -2: return false; break; // Address not found in list or is default
case -1: continue; break; // Write failed or timed out
case 0: return false; break; // This is a master node
case -2: return false; // Address not found in list or is default
case -1: continue; // Write failed or timed out
case 0: return false; // This is a master node
default:
if ((uint16_t)result == mesh_address) {
return true;
Expand Down

0 comments on commit 97c5f3d

Please sign in to comment.