Merge pull request #352 from meshtastic/serial

Override console serial port
This commit is contained in:
Ben Meadors 2023-05-28 09:02:38 -05:00 committed by GitHub
commit 1a8f80d7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,6 @@ message ModuleConfig {
/*
* Preferences for the SerialModule
* FIXME - Move this out of UserPreferences and into a section for module configuration.
*/
bool enabled = 1;
@ -193,17 +192,17 @@ message ModuleConfig {
bool echo = 2;
/*
* TODO: REPLACE
* RX pin (should match Arduino gpio pin number)
*/
uint32 rxd = 3;
/*
* TODO: REPLACE
* TX pin (should match Arduino gpio pin number)
*/
uint32 txd = 4;
/*
* TODO: REPLACE
* Serial baud rate
*/
Serial_Baud baud = 5;
@ -213,9 +212,16 @@ message ModuleConfig {
uint32 timeout = 6;
/*
* TODO: REPLACE
* Mode for serial module operation
*/
Serial_Mode mode = 7;
/*
* Overrides the platform's defacto Serial port instance to use with Serial module config settings
* This is currently only usable in output modes like NMEA / CalTopo and may behave strangely or not work at all in other modes
* Existing logging over the Serial Console will still be present
*/
bool override_console_serial_port = 8;
}
/*