Update ultrasonic_sensor.cpp

This commit is contained in:
Masterz69 2024-04-02 19:43:15 +03:00 committed by GitHub
parent 06c0b32cea
commit 9fbc222fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,9 +6,7 @@ namespace ultrasonic_uart {
static const char *const TAG = "ultrasonic_uart"; static const char *const TAG = "ultrasonic_uart";
void UltrasonicSensorComponent_UART::setup() { void UltrasonicSensorComponent_UART::setup() { ESP_LOGCONFIG(TAG, "Setting up Ultrasonic Sensor..."); }
ESP_LOGCONFIG(TAG, "Setting up Ultrasonic Sensor...");
}
void UltrasonicSensorComponent_UART::update() { void UltrasonicSensorComponent_UART::update() {
this->write(0x55); this->write(0x55);
while (this->available() == 4) { while (this->available() == 4) {