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.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: program.cpp
- Revision:
- 11:6f8f70a6dd46
- Parent:
- 10:d5cd4a7ada7b
- Child:
- 12:beb64aa0da86
diff -r d5cd4a7ada7b -r 6f8f70a6dd46 program.cpp
--- a/program.cpp Wed Feb 12 12:52:48 2014 +0000
+++ b/program.cpp Wed Feb 12 13:40:16 2014 +0000
@@ -234,7 +234,8 @@
void loop(long deviceId)
{
sigq_t *signal = signalQuality();
- measurement(deviceId, signal->rssi, signal->ber);
+ if ((signal->rssi != 0) && (signal->ber != 0))
+ measurement(deviceId, signal->rssi, signal->ber);
}
bool measurement(long deviceId, double rssi, int ber)
