User to UserLite in NodeDB (#4438)

* User to UserLite in the nodedb

* Tronkdor the burninator
This commit is contained in:
Ben Meadors
2024-08-11 17:22:11 -05:00
committed by GitHub
parent 0bd17e6da6
commit a28f10e0c2
7 changed files with 106 additions and 14 deletions

View File

@@ -38,8 +38,9 @@ size_t RedirectablePrint::write(uint8_t c)
#ifdef USE_SEGGER
SEGGER_RTT_PutChar(SEGGER_STDOUT_CH, c);
#endif
if (!config.has_lora || config.security.serial_enabled)
// Account for legacy config transition
bool serialEnabled = config.has_security ? config.security.serial_enabled : config.device.serial_enabled;
if (!config.has_lora || serialEnabled)
dest->write(c);
return 1; // We always claim one was written, rather than trusting what the