Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: sensor_board.cpp
- Revision:
- 28:80bc5ebf3ae0
- Parent:
- 27:27cffdb2e9d3
- Child:
- 29:c2838405fa5c
--- a/sensor_board.cpp Mon Jan 09 23:26:52 2017 +0000
+++ b/sensor_board.cpp Tue Jan 10 09:23:14 2017 +0000
@@ -24,7 +24,7 @@
}
void Board::updateSensor(Sensor* sensor, bool* should_send_data) {
- if (sensor) {
+ if (sensor != NULL) {
sensor->updateState();
if (*should_send_data) {
Data data_to_send = sensor->dataToSend();