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: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: SerialDiagnostics/SerialDiagnostics.cpp
- Revision:
- 22:fc802e7715f8
- Parent:
- 20:3dfa7e9461a0
--- a/SerialDiagnostics/SerialDiagnostics.cpp Fri Nov 07 01:26:37 2014 +0000
+++ b/SerialDiagnostics/SerialDiagnostics.cpp Fri Nov 07 21:09:50 2014 +0000
@@ -77,11 +77,21 @@
}
// Reading Coulomb Counter
-
padCenter(line, max_charsPerLine-2, " ", ' '); ADD_LINE // Generate blank line
padCenter(line, max_charsPerLine-2, " CoulombCounter ", '*'); ADD_LINE
- sprintf(temp, "Current: %f ampHours: %f Capacity: %f SOC: %f", coulombCounter.current(), coulombCounter.ampHours(), coulombCounter.capacity(), coulombCounter.SOC()); ADD_SPRINTF_LINE
+ sprintf(temp, "Current: %f ampHours: %f ", coulombCounter.current(), coulombCounter.ampHours()); ADD_SPRINTF_LINE
+ sprintf(temp, "Capacity: %f SOC: %f ", coulombCounter.capacity(), coulombCounter.SOC()); ADD_SPRINTF_LINE
+
+ // Reading DC_DC
+ padCenter(line, max_charsPerLine-2, " ", ' '); ADD_LINE // Generate blank line
+ padCenter(line, max_charsPerLine-2, " DC-DC Converter ", '*'); ADD_LINE
+
+ sprintf(temp, "DC Converter on: %d ", dc.is_on()); ADD_SPRINTF_LINE
+
+ // Reading FanPump
+ padCenter(line, max_charsPerLine-2, " ", ' '); ADD_LINE // Generate blank line
+ padCenter(line, max_charsPerLine-2, " ", '*'); ADD_LINE
// Write it all at once to output tx buffer
for (int i = 0; i < strlen(buff); i++) {
