Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: DeviceInfo.cpp
- Revision:
- 77:f6717e4eccc4
- Parent:
- 74:ca3001991fdc
- Child:
- 96:ea056f6be2e8
--- a/DeviceInfo.cpp Wed Feb 25 10:06:11 2015 +0000 +++ b/DeviceInfo.cpp Tue Mar 03 14:10:09 2015 +0000 @@ -37,8 +37,11 @@ return _devStatus.ccid; } -DeviceInfo::SignalQuality * DeviceInfo::signalQuality() +DeviceInfo::SignalQuality * DeviceInfo::signalQuality(bool realTime) { + if (!realTime && _signalQuality.rssi) + return &_signalQuality; + memset(&_signalQuality, 0, sizeof(DeviceInfo::SignalQuality)); if (!refreshNetStatus()) { aError("Can not refresh network status!\r\n");