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/DistanceSensor.cpp
- Revision:
- 1:a9251be32d0a
- Parent:
- 0:64fe0ebc42c6
- Child:
- 2:45082fedef80
diff -r 64fe0ebc42c6 -r a9251be32d0a Sensor/DistanceSensor.cpp
--- a/Sensor/DistanceSensor.cpp Wed Nov 11 22:04:30 2020 +0000
+++ b/Sensor/DistanceSensor.cpp Wed Nov 11 23:35:00 2020 +0000
@@ -12,8 +12,8 @@
if (m_analog >= 3.0){
distance = 5.0;
}
- else if (m_analog < 3.0 && m_analog >2.5){
- distance = 10;
+ else if (m_analog < 3.0 && m_analog >= 2.5){
+ distance = 10.0;
}
else if (/* Fill in the blank */){
distance = /* Fill in the blank */;