add real formatted debug logging with timestamps

This commit is contained in:
Kevin Hester
2020-12-25 15:17:56 +08:00
parent c349ad62e7
commit 59577b9d79
5 changed files with 108 additions and 1 deletions

View File

@@ -428,7 +428,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DEBUG_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)
#else
#ifdef DEBUG_PORT
#define DEBUG_MSG(...) DEBUG_PORT.printf(__VA_ARGS__)
#define DEBUG_MSG(...) DEBUG_PORT.logDebug(__VA_ARGS__)
#else
#define DEBUG_MSG(...)
#endif