Skip to content

Commit 53624e4

Browse files
committed
added the inital support for new mcpwm driver
1 parent ee91e27 commit 53624e4

File tree

7 files changed

+762
-993
lines changed

7 files changed

+762
-993
lines changed

src/communication/SimpleFOCDebug.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void SimpleFOCDebug::println(const __FlashStringHelper* str) {
3838
}
3939
}
4040

41+
4142
void SimpleFOCDebug::println(const char* str, float val) {
4243
if (_debugPrint != NULL) {
4344
_debugPrint->print(str);
@@ -86,6 +87,20 @@ void SimpleFOCDebug::print(const __FlashStringHelper* str) {
8687
}
8788
}
8889

90+
void SimpleFOCDebug::print(const StringSumHelper str) {
91+
if (_debugPrint != NULL) {
92+
_debugPrint->print(str.c_str());
93+
}
94+
}
95+
96+
97+
void SimpleFOCDebug::println(const StringSumHelper str) {
98+
if (_debugPrint != NULL) {
99+
_debugPrint->println(str.c_str());
100+
}
101+
}
102+
103+
89104

90105
void SimpleFOCDebug::print(int val) {
91106
if (_debugPrint != NULL) {

src/communication/SimpleFOCDebug.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@
3333
**/
3434

3535

36-
#ifndef SIMPLEFOC_DISABLE_DEBUG
36+
#ifndef SIMPLEFOC_DISABLE_DEBUG
3737

3838
class SimpleFOCDebug {
3939
public:
4040
static void enable(Print* debugPrint = &Serial);
4141

4242
static void println(const __FlashStringHelper* msg);
43+
static void println(const StringSumHelper msg);
4344
static void println(const char* msg);
4445
static void println(const __FlashStringHelper* msg, float val);
4546
static void println(const char* msg, float val);
@@ -52,6 +53,7 @@ class SimpleFOCDebug {
5253

5354
static void print(const char* msg);
5455
static void print(const __FlashStringHelper* msg);
56+
static void print(const StringSumHelper msg);
5557
static void print(int val);
5658
static void print(float val);
5759

0 commit comments

Comments
 (0)