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.cpp
- Revision:
- 33:d3cc00e39e6a
- Parent:
- 29:c2838405fa5c
- Child:
- 47:9e21b199c679
--- a/sensor.cpp Tue Jan 17 11:37:01 2017 +0100
+++ b/sensor.cpp Tue Jan 17 11:39:59 2017 +0100
@@ -12,7 +12,7 @@
void DigitalSensor::updateState() {
bool state = sensor_.read();
-
+
if (last_state_ != state) {
last_state_ = state;
changes_counter_++;
@@ -40,4 +40,4 @@
return Data(sensor_id_, data_read);
}
-void AnalogSensor::resetState() {}
\ No newline at end of file
+void AnalogSensor::resetState() {}