Skip to content

Commit dee52e8

Browse files
committed
Clang
1 parent 7978e5b commit dee52e8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/provisioning/sdcard/ws_sdcard.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
505505
wippersnapper_uart_UartDeviceType_UART_DEVICE_TYPE_GPS;
506506
msg_uart_add.cfg_device.which_config =
507507
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;
509510
// TODO: We do not have parsing for GPS PMTK or UBX implemented yet
510511
// This is a minimum possible implementation
511512
} else if (strcmp(device_type, "pm25aqi") == 0) {
@@ -515,7 +516,8 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
515516
wippersnapper_uart_UartDeviceConfig_pm25aqi_tag;
516517
msg_uart_add.cfg_device.config.pm25aqi.is_pm1006 =
517518
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;
519521
// Fill sensor types
520522
pb_size_t sensor_type_count = 0;
521523
for (JsonObject sensor_type : component["sensorTypes"].as<JsonArray>()) {
@@ -532,7 +534,8 @@ bool ws_sdcard::ParseUartAdd(JsonObject &component,
532534
wippersnapper_uart_UartDeviceConfig_generic_uart_input_tag;
533535
msg_uart_add.cfg_device.config.generic_uart_input.line_ending =
534536
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;
536539
// Fill sensor types
537540
pb_size_t sensor_type_count = 0;
538541
for (JsonObject sensor_type : component["sensorTypes"].as<JsonArray>()) {
@@ -629,7 +632,7 @@ bool ws_sdcard::ParseI2cDeviceAddReplace(
629632
msg_i2c_add.has_gps_config = true;
630633
return true; // early-out, we don't need to set sensor types for GPS
631634
} else {
632-
msg_i2c_add.i2c_device_period = component["period"] | 0.0;
635+
msg_i2c_add.i2c_device_period = component["period"] | 0.0;
633636
}
634637

635638
msg_i2c_add.i2c_device_sensor_types_count = 0;

0 commit comments

Comments
 (0)