Portduino logging enhancements (#3121)

* Portduino logging enhancements

* Extra debugging for SPI device
This commit is contained in:
Jonathan Bennett authored and GitHub committed 2024-01-22 01:27:06 -06:00
1 parent 062c646814
commit 6b5101ec67
5 files changed
+24 -15

No files matched your search

+8
View File
@@ -10,6 +10,10 @@
#include <sys/time.h>
#include <time.h>
#ifdef ARCH_PORTDUINO
#include "platform/portduino/PortduinoGlue.h"
#endif
/**
* A printer that doesn't go anywhere
*/
@@ -68,6 +72,10 @@ size_t RedirectablePrint::vprintf(const char *format, va_list arg)
size_t RedirectablePrint::log(const char *logLevel, const char *format, ...)
{
#ifdef ARCH_PORTDUINO
if (!settingsMap[debugmode] && strcmp(logLevel, "DEBUG") == 0)
return 0;
#endif
if (moduleConfig.serial.override_console_serial_port && strcmp(logLevel, "DEBUG") == 0) {
return 0;
}