Update ultrasonic_sensor.cpp - ci-suggest-changes

This commit is contained in:
Masterz69 2024-04-02 20:44:12 +03:00 committed by GitHub
parent 03eb7e98fd
commit 32833cc1d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,8 @@ namespace ultrasonic_uart {
static const char *const TAG = "ultrasonic_uart";
void UltrasonicSensorComponent_UART::setup() { ESP_LOGCONFIG(TAG, "Setting up Ultrasonic Sensor..."); }
void UltrasonicSensorComponent_UART::update() {
void UltrasonicSensorComponent::setup() { ESP_LOGCONFIG(TAG, "Setting up Ultrasonic Sensor..."); }
void UltrasonicSensorComponent::update() {
this->write(0x55);
while (this->available() == 4) {
auto frame = *this->read_array<4>();
@ -17,7 +17,7 @@ void UltrasonicSensorComponent_UART::update() {
}
}
}
void UltrasonicSensorComponent_UART::dump_config() {
void UltrasonicSensorComponent::dump_config() {
LOG_SENSOR("", "Ultrasonic Sensor", this);
LOG_UPDATE_INTERVAL(this);
}