Update hbridge_switch.cpp

This commit is contained in:
David Woodhouse 2024-09-07 15:46:00 +01:00 committed by GitHub
parent 5dc5fec76b
commit 663effab8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,9 +29,9 @@ void HBridgeSwitch::dump_config() {
LOG_SWITCH("", "H-Bridge Switch", this); LOG_SWITCH("", "H-Bridge Switch", this);
LOG_PIN(" On Pin: ", this->on_pin_); LOG_PIN(" On Pin: ", this->on_pin_);
LOG_PIN(" Off Pin: ", this->off_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_) 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) { void HBridgeSwitch::write_state(bool state) {