Skip to content

Commit

Permalink
doc: Denote that second way is an alternative
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
franky47 committed Jul 3, 2019
1 parent 34034bd commit 828bc05
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ void loop()
// Pass it the serial port to read from and a callback:
SerdeRX::read(Serial1, recordSensorData);

// Note: you can also check manually for incoming data:
SensorData data;
if (SerdeRX::receive(Serial1, data))
{
recordSensorData(data);
}
// Or you can also check manually for incoming data:
// SensorData data;
// if (SerdeRX::receive(Serial1, data))
// {
// recordSensorData(data);
// }
}
```
Expand Down

0 comments on commit 828bc05

Please sign in to comment.