Skip to content

Commit 74eab4c

Browse files
committed
Remove null driver check + \n after drv->printSensorInfo()
1 parent 45989bf commit 74eab4c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/components/i2c/controller.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,6 @@ void I2cController::ConfigureMuxChannel(uint32_t mux_channel, bool is_alt_bus) {
10331033
void I2cController::PrintAllDrivers() {
10341034
WS_DEBUG_PRINTLN("[i2c] Printing all drivers...");
10351035
for (drvBase *drv : _i2c_drivers) {
1036-
if (drv == nullptr)
1037-
continue; // skip null drivers
10381036
drv->printSensorInfo();
10391037
}
10401038
}

src/components/i2c/drivers/drvBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ class drvBase {
868868
WS_DEBUG_PRINT("\tSensor Period: ");
869869
WS_DEBUG_PRINT(_sensor_period);
870870
WS_DEBUG_PRINT("\tSensor Period remaining: ");
871-
WS_DEBUG_PRINT(millis() - _sensor_period_prv);
871+
WS_DEBUG_PRINTLN(millis() - _sensor_period_prv);
872872
}
873873

874874
protected:

0 commit comments

Comments
 (0)