Skip to content

Commit f1d9200

Browse files
committed
bugfix for #499
1 parent 246367b commit f1d9200

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/current_sense/hardware_specific/esp32/esp32_mcu.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ typedef struct ESP32CurrentSenseParams {
2020
} ESP32CurrentSenseParams;
2121

2222
// macros for debugging wuing the simplefoc debug system
23-
#define SIMPLEFOC_ESP32_CS_DEBUG(str)\
2423
#ifndef SIMPLEFOC_DISABLE_DEBUG
25-
SimpleFOCDebug::println( "ESP32-CS: "+ String(str));\
24+
#define SIMPLEFOC_ESP32_CS_DEBUG(str)\
25+
SimpleFOCDebug::println( "ESP32-CS: "+ String(str));
26+
#else
27+
#define SIMPLEFOC_ESP32_CS_DEBUG(str)
2628
#endif
2729

2830

src/drivers/hardware_specific/esp32/esp32_driver_mcpwm.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ typedef struct ESP32MCPWMDriverParams {
3232
} ESP32MCPWMDriverParams;
3333

3434

35-
#define SIMPLEFOC_ESP32_DEBUG(tag, str)\
3635
#ifndef SIMPLEFOC_DISABLE_DEBUG
36+
#define SIMPLEFOC_ESP32_DEBUG(tag, str)\
3737
SimpleFOCDebug::println( "ESP32-"+String(tag)+ ": "+ String(str));
38+
#else
39+
#define SIMPLEFOC_ESP32_DEBUG(tag, str)
3840
#endif
3941

4042
#define SIMPLEFOC_ESP32_DRV_DEBUG(str)\

0 commit comments

Comments
 (0)