Skip to content

Commit 2e44c56

Browse files
committed
Add ifdef clause around debug print of power library in order to allow disable/enable of debug output as compiler option.
1 parent 80a316a commit 2e44c56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Braccio++.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030

3131
#include "mbed.h"
3232

33+
/**************************************************************************************
34+
* DEFINES
35+
**************************************************************************************/
36+
37+
#define BRACCIO_POWER_DEBUG_ENABLE
38+
3339
/**************************************************************************************
3440
* FUNCTION DECLARATION
3541
**************************************************************************************/
@@ -455,7 +461,9 @@ void BraccioClass::pd_thread_func()
455461
last_time_ask_pps = millis();
456462
}
457463
_PD_UFP.run();
464+
#ifdef BRACCIO_POWER_DEBUG_ENABLE
458465
_PD_UFP.print_status(Serial);
466+
#endif
459467

460468
/* Set up the next time this loop is called. */
461469
if (flags & PD_IRQ_EVENT_FLAG)

0 commit comments

Comments
 (0)