Skip to content

Commit 31b4fa7

Browse files
committed
Clang again
1 parent 2268c0f commit 31b4fa7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/i2c/controller.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,9 @@ bool I2cController::PublishI2cDeviceAddedorReplaced(
544544
// If we're in offline mode, don't publish out to IO
545545
if (WsV2._sdCardV2->isModeOffline())
546546
return true; // Back out if we're in offline mode
547-
547+
548548
// Encode the I2cDeviceAddedorReplaced message and publish it to IO
549-
if (!_i2c_model->encodeMsgI2cDeviceAddedorReplaced(
549+
if (!_i2c_model->encodeMsgI2cDeviceAddedorReplaced(
550550
device_descriptor, _i2c_bus_default->GetBusStatus(), device_status)) {
551551
WS_DEBUG_PRINTLN(
552552
"[i2c] ERROR: Unable to encode I2cDeviceAddedorReplaced message!");
@@ -967,7 +967,9 @@ bool I2cController::Handle_I2cDeviceAddOrReplace(pb_istream_t *stream) {
967967
WS_DEBUG_PRINTLN("OK!");
968968
} else if (is_gps) {
969969
WS_DEBUG_PRINT("[i2c] Creating a GPS driver...");
970-
if (!WsV2._gps_controller->AddGPS(bus, device_descriptor.i2c_device_address, &_i2c_model->GetI2cDeviceAddOrReplaceMsg()->gps_config)) {
970+
if (!WsV2._gps_controller->AddGPS(
971+
bus, device_descriptor.i2c_device_address,
972+
&_i2c_model->GetI2cDeviceAddOrReplaceMsg()->gps_config)) {
971973
did_init = false;
972974
WS_DEBUG_PRINTLN("FAILURE!");
973975
} else {

0 commit comments

Comments
 (0)