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: RefRX.cpp
- Revision:
- 4:87d3a005c4de
- Parent:
- 3:9eb188e979ba
- Child:
- 5:444939b4790a
--- a/RefRX.cpp Sat Jul 20 11:22:12 2013 +0000
+++ b/RefRX.cpp Sat Jul 20 11:26:05 2013 +0000
@@ -21,6 +21,8 @@
bool RefRX::get (float &ref1, float &ref2, float &ref3, float &ref4)
{
+ if(!_initialized)
+ return false;
bool lock = _refs_access.trylock();
if(!lock)
return false;