Skip to content

Commit

Permalink
fix wrong size check - bootloader message was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-pa committed Jun 7, 2018
1 parent dda3902 commit 7f1070d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Device {

bool pollRadio () {
uint8_t num = radio().read(msg);
if( num > 10 ) { // minimal msg is 10 byte
if( num >= 10 ) { // minimal msg is 10 byte
return process(msg);
}
return false;
Expand Down

0 comments on commit 7f1070d

Please sign in to comment.