Skip to content

Commit 71bd4bd

Browse files
authored
Merge pull request #46 from bcmi-labs/disable-power-debug-output
Disable power debug output.
2 parents 80a316a + 0a56b1d commit 71bd4bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Braccio++.cpp

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

3131
#include "mbed.h"
3232

33+
/**************************************************************************************
34+
* DEFINES
35+
**************************************************************************************/
36+
37+
/* Uncommenting this line enables debug output of the USB Power Delivery library. */
38+
//#define BRACCIO_POWER_DEBUG_ENABLE
39+
3340
/**************************************************************************************
3441
* FUNCTION DECLARATION
3542
**************************************************************************************/
@@ -455,7 +462,9 @@ void BraccioClass::pd_thread_func()
455462
last_time_ask_pps = millis();
456463
}
457464
_PD_UFP.run();
465+
#ifdef BRACCIO_POWER_DEBUG_ENABLE
458466
_PD_UFP.print_status(Serial);
467+
#endif
459468

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

0 commit comments

Comments
 (0)