Skip to content

Commit d48f4d7

Browse files
committed
added support for debugging with char
1 parent 238d26b commit d48f4d7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/communication/SimpleFOCDebug.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ void SimpleFOCDebug::println(const char* str, int val) {
5858
_debugPrint->println(val);
5959
}
6060
}
61+
void SimpleFOCDebug::println(const char* str, char val) {
62+
if (_debugPrint != NULL) {
63+
_debugPrint->print(str);
64+
_debugPrint->println(val);
65+
}
66+
}
6167

6268
void SimpleFOCDebug::println(const __FlashStringHelper* str, int val) {
6369
if (_debugPrint != NULL) {

src/communication/SimpleFOCDebug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class SimpleFOCDebug {
4545
static void println(const char* msg, float val);
4646
static void println(const __FlashStringHelper* msg, int val);
4747
static void println(const char* msg, int val);
48+
static void println(const char* msg, char val);
4849
static void println();
4950
static void println(int val);
5051
static void println(float val);

0 commit comments

Comments
 (0)