@@ -505,7 +505,8 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
505
505
wippersnapper_uart_UartDeviceType_UART_DEVICE_TYPE_GPS;
506
506
msg_uart_add.cfg_device .which_config =
507
507
wippersnapper_uart_UartDeviceConfig_gps_tag;
508
- msg_uart_add.cfg_device .config .gps .period = component[" gps" ][" period" ] | 30.0 ;
508
+ msg_uart_add.cfg_device .config .gps .period =
509
+ component[" gps" ][" period" ] | 30.0 ;
509
510
// TODO: We do not have parsing for GPS PMTK or UBX implemented yet
510
511
// This is a minimum possible implementation
511
512
} else if (strcmp (device_type, " pm25aqi" ) == 0 ) {
@@ -515,7 +516,8 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
515
516
wippersnapper_uart_UartDeviceConfig_pm25aqi_tag;
516
517
msg_uart_add.cfg_device .config .pm25aqi .is_pm1006 =
517
518
component[" isPm1006" ] | false ;
518
- msg_uart_add.cfg_device .config .pm25aqi .period = component[" pm25aqi" ][" period" ] | 30.0 ;
519
+ msg_uart_add.cfg_device .config .pm25aqi .period =
520
+ component[" pm25aqi" ][" period" ] | 30.0 ;
519
521
// Fill sensor types
520
522
pb_size_t sensor_type_count = 0 ;
521
523
for (JsonObject sensor_type : component[" sensorTypes" ].as <JsonArray>()) {
@@ -532,7 +534,8 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
532
534
wippersnapper_uart_UartDeviceConfig_generic_uart_input_tag;
533
535
msg_uart_add.cfg_device .config .generic_uart_input .line_ending =
534
536
ParseUartLineEnding (component[" lineEnding" ] | " LF" );
535
- msg_uart_add.cfg_device .config .generic_uart_input .period = component[" generic_input" ][" period" ] | 30.0 ;
537
+ msg_uart_add.cfg_device .config .generic_uart_input .period =
538
+ component[" generic_input" ][" period" ] | 30.0 ;
536
539
// Fill sensor types
537
540
pb_size_t sensor_type_count = 0 ;
538
541
for (JsonObject sensor_type : component[" sensorTypes" ].as <JsonArray>()) {
@@ -629,7 +632,7 @@ bool ws_sdcard::ParseI2cDeviceAddReplace(
629
632
msg_i2c_add.has_gps_config = true ;
630
633
return true ; // early-out, we don't need to set sensor types for GPS
631
634
} else {
632
- msg_i2c_add.i2c_device_period = component[" period" ] | 0.0 ;
635
+ msg_i2c_add.i2c_device_period = component[" period" ] | 0.0 ;
633
636
}
634
637
635
638
msg_i2c_add.i2c_device_sensor_types_count = 0 ;
0 commit comments