File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -499,9 +499,12 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
499
499
// set UartDeviceType
500
500
const char *device_type = component[" deviceType" ] | " UNKNOWN" ;
501
501
if (strcmp (device_type, " GPS" ) == 0 ) {
502
- msg_uart_add.cfg_device .device_type =
503
- wippersnapper_uart_UartDeviceType_UART_DEVICE_TYPE_GPS;
504
- // Fill the config field
502
+ msg_uart_add.cfg_device .device_type = wippersnapper_uart_UartDeviceType_UART_DEVICE_TYPE_GPS;
503
+ msg_uart_add.cfg_device .which_config = wippersnapper_uart_UartDeviceConfig_gps_tag;
504
+ msg_uart_add.cfg_device .config .gps .period = component[" period" ] | 0.0 ;
505
+ // TODO: We do not have parsing for GPS PMTK or UBX implemented yet
506
+ // This is a minimum possible implementation
507
+ // TODO: We will want to add parsing for GPS PMTK, at least
505
508
} else if (strcmp (device_type, " PM25AQI" ) == 0 ) {
506
509
msg_uart_add.cfg_device .device_type =
507
510
wippersnapper_uart_UartDeviceType_UART_DEVICE_TYPE_PM25AQI;
You can’t perform that action at this time.
0 commit comments