File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
current_sense/hardware_specific/esp32
drivers/hardware_specific/esp32 Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )\
You can’t perform that action at this time.
0 commit comments