fix clang

This commit is contained in:
Tomasz Duda 2024-10-01 17:52:19 +02:00
parent df37248308
commit 6c36f0c969

View file

@ -22,9 +22,7 @@ void UsbDevice::update() {
#endif #endif
} }
void UsbDevice::dump_config() { void UsbDevice::dump_config() { ESP_LOGCONFIG(TAG, "USB device - configured: %s", YESNO(get_configured_())); }
ESP_LOGCONFIG(TAG, "USB device - configured: %s", YESNO(get_configured_()));
}
#ifdef USE_BINARY_SENSOR #ifdef USE_BINARY_SENSOR
void UsbDevice::set_configured_binary_sensor(binary_sensor::BinarySensor *sensor) { configured_ = sensor; }; void UsbDevice::set_configured_binary_sensor(binary_sensor::BinarySensor *sensor) { configured_ = sensor; };
@ -52,7 +50,6 @@ bool UsbDevice::get_configured_() {
return false; return false;
} }
} // namespace usb_device } // namespace usb_device
} // namespace esphome } // namespace esphome
#endif #endif