Generic SmartRest library

Dependents:   SmartRestUnitTest MbedSmartRest MbedSmartRestStreaming

Files at this revision

API Documentation at this revision

Comitter:
vwochnik
Date:
Wed Apr 16 08:30:49 2014 +0000
Parent:
0:744801d5734d
Commit message:
fix

Changed in this revision

FloatValue.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 744801d5734d -r 3e7b4c9e0821 FloatValue.cpp
--- a/FloatValue.cpp	Mon Mar 24 09:57:40 2014 +0000
+++ b/FloatValue.cpp	Wed Apr 16 08:30:49 2014 +0000
@@ -69,7 +69,7 @@
     if (_number > 4294967040.0) return sink.write("ovf");
   
     if (_negative)
-        sink.write('-');
+        n += sink.write('-');
 
     double number = _number, rounding = 0.5;
     for (uint8_t i = 0; i < _digits; ++i)