set baud rate through API

This commit is contained in:
2026-09-20 21:57:21 +01:00
parent c8c2f86087
commit 7eb1f1b5fb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ namespace Logger {
out().print(buffer);
}
void Initialize(int8_t rx, int8_t tx) {
Serial2.begin(115200, SERIAL_8N1, rx, tx);
void Initialize(int8_t rx, int8_t tx, int baud) {
Serial2.begin(baud, SERIAL_8N1, rx, tx);
Serial2.flush();
}
};
+1 -1
View File
@@ -71,7 +71,7 @@ namespace Logger {
Trace = LOG_LEVEL_TRACE
};
void Initialize(int8_t rx, int8_t tx);
void Initialize(int8_t rx, int8_t tx, int baud);
void WritePrefix(LogLevel lvl);
void VPrintf(const char* fmt, va_list args);