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: edge_sensor/edge_pressure.cpp
- Revision:
- 7:aa858d789025
- Parent:
- 3:cac964851bb6
- Child:
- 8:5590f55bdf41
diff -r 44ca704f2bc1 -r aa858d789025 edge_sensor/edge_pressure.cpp
--- a/edge_sensor/edge_pressure.cpp Wed Dec 06 00:35:56 2017 +0000
+++ b/edge_sensor/edge_pressure.cpp Thu Dec 07 01:06:46 2017 +0000
@@ -108,7 +108,7 @@
// printf(str_buf) ;
// printf("\n") ;
sprintf(_str_buf,
- "{\"DEVICE\":\"GAS\",\"PN\":\"PSE530\",\"PRESSURE\":\"%.3f\",\"UNIT\":\"kgf/cm2\",\"S\":\"%06d\",\"E\":\"%d\"}",
+ "{\"DEVICE\":\"PRESS\",\"PN\":\"PSE530\",\"VAL\":\"%.3f\",\"UNIT\":\"kgf/cm2\",\"S\":\"%06d\",\"E\":\"%d\"}",
_value, time2seq(_sampled_time), _error_count) ;
result = afero->setAttribute(1, _str_buf) ;
return( result == afSUCCESS ) ;