Skip to content

Commit

Permalink
Merge pull request #152 from positron96/master
Browse files Browse the repository at this point in the history
check value of radio.begin in mesh.begin
  • Loading branch information
TMRh20 authored Dec 14, 2020
2 parents f098df0 + 749c56a commit d201532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RF24Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ bool RF24Mesh::begin(uint8_t channel, rf24_datarate_e data_rate, uint32_t timeou
radio.stopListening();
}
meshStarted = true;
radio.begin();
if(!radio.begin())
return 0;
radio.setChannel(channel);
radio.setDataRate(data_rate);
network.returnSysMsgs = true;
Expand Down

0 comments on commit d201532

Please sign in to comment.