diff --git a/components/ocs_sensor/sht4x/sensor.cpp b/components/ocs_sensor/sht4x/sensor.cpp index 1dab0be9..b890a608 100644 --- a/components/ocs_sensor/sht4x/sensor.cpp +++ b/components/ocs_sensor/sht4x/sensor.cpp @@ -175,7 +175,7 @@ status::StatusCode Sensor::initialize_() { ocs_logi(log_tag_.c_str(), "initialized: serial_number=%s measure_command=%s " - "heating_command=%s heating_delay=%lu(ms) heating_count=%u", + "heating_command=%s heating_delay=%lu(ms) heating_count=%lu", serial_number_to_str(serial_number_).c_str(), command_to_str_(params_.measure_command), command_to_str_(params_.heating_command), pdTICKS_TO_MS(heating_delay_), diff --git a/components/ocs_sensor/sht4x/sensor.h b/components/ocs_sensor/sht4x/sensor.h index a5eb43e9..f0ad0476 100644 --- a/components/ocs_sensor/sht4x/sensor.h +++ b/components/ocs_sensor/sht4x/sensor.h @@ -31,7 +31,7 @@ class Sensor : public scheduler::ITask, private core::NonCopyable<> { struct Data { double humidity { 0.0 }; double temperature { 0.0 }; - size_t heating_count { 0 }; + uint32_t heating_count { 0 }; }; enum class Command { @@ -136,7 +136,7 @@ class Sensor : public scheduler::ITask, private core::NonCopyable<> { storage::IStorage& storage_; TickType_t heating_delay_ { 0 }; - size_t heating_count_ { 0 }; + uint32_t heating_count_ { 0 }; bool initialized_ { false }; SerialNumber serial_number_ { 0 };