From 663effab8db4abdf9fb081ca6af040b3b6cdcded Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 7 Sep 2024 15:46:00 +0100 Subject: [PATCH] Update hbridge_switch.cpp --- esphome/components/hbridge/switch/hbridge_switch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/hbridge/switch/hbridge_switch.cpp b/esphome/components/hbridge/switch/hbridge_switch.cpp index 2f5cebba55..30edb851be 100644 --- a/esphome/components/hbridge/switch/hbridge_switch.cpp +++ b/esphome/components/hbridge/switch/hbridge_switch.cpp @@ -29,9 +29,9 @@ void HBridgeSwitch::dump_config() { LOG_SWITCH("", "H-Bridge Switch", this); LOG_PIN(" On Pin: ", this->on_pin_); LOG_PIN(" Off Pin: ", this->off_pin_); - ESP_LOGCONFIG(TAG, " Pulse length: %d ms", this->pulse_length_); + ESP_LOGCONFIG(TAG, " Pulse length: %" PRId32 " ms", this->pulse_length_); if (this->wait_time_) - ESP_LOGCONFIG(TAG, " Wait time %d ms", this->wait_time_); + ESP_LOGCONFIG(TAG, " Wait time %" PRId32 " ms", this->wait_time_); } void HBridgeSwitch::write_state(bool state) {