Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/ocs_sensor/sht4x/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_),
Expand Down
4 changes: 2 additions & 2 deletions components/ocs_sensor/sht4x/sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 };
Expand Down