From 40419e8ede59a21386a6780a3a589e8665512be4 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Sat, 26 Mar 2022 09:31:08 -0700 Subject: [PATCH] Change mode to enum, support proto and change baud to enum --- radioconfig.proto | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/radioconfig.proto b/radioconfig.proto index a899c2d..8a46c6e 100644 --- a/radioconfig.proto +++ b/radioconfig.proto @@ -623,7 +623,25 @@ message RadioConfig { /* * TODO: REPLACE */ - uint32 serial_module_baud = 176; + enum Serial_Baud { + BAUD_Default = 0; + BAUD_2400 = 1; + BAUD_4800 = 2; + BAUD_9600 = 3; + BAUD_19200 = 4; + BAUD_38400 = 5; + BAUD_57600 = 6; + BAUD_115200 = 7; + BAUD_230400 = 8; + BAUD_460800 = 9; + BAUD_576000 = 10; + BAUD_921600 = 11; + }; + + /* + * TODO: REPLACE + */ + Serial_Baud serial_module_baud = 176; /* * TODO: REPLACE @@ -633,7 +651,16 @@ message RadioConfig { /* * TODO: REPLACE */ - uint32 serial_module_mode = 125; + enum Serial_Mode { + MODE_Default = 0; + MODE_SIMPLE = 1; + MODE_PROTO = 2; + }; + + /* + * TODO: REPLACE + */ + Serial_Mode serial_module_mode = 125; /* * Preferences for the ExternalNotificationModule