From 162e18f293cbb8788f703ce3506f5976bf103b4a Mon Sep 17 00:00:00 2001 From: kenji Date: Wed, 2 Jul 2025 17:28:15 -0400 Subject: [PATCH] Fix syntax errors --- components/hauslane/hauslane.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/hauslane/hauslane.cpp b/components/hauslane/hauslane.cpp index 0364e92..7cc47ee 100644 --- a/components/hauslane/hauslane.cpp +++ b/components/hauslane/hauslane.cpp @@ -88,15 +88,15 @@ void Hauslane::loop() { } } else if (this->speed < this->speed_target) { // increase speed - button_press(pin_up, true) + button_press(pin_up, true); } else if (this->speed > this->speed_target) { // decrease speed - button_press(pin_down, true) + button_press(pin_down, true); } } else if (this->light_cur != this->light_target) { if (this->power) { // press light button - button_press(pin_light, true) + button_press(pin_light, true); } else { // power on hood first button_press(pin_power, true); @@ -258,7 +258,7 @@ void Hauslane::command(std::string command) { } // simulate a button press by activating the GPIO then releasing -void Hauslane::button_press(GPIOPin *pin, val) { +void Hauslane::button_press(GPIOPin *pin, bool val) { if (val) { ESP_LOGD(TAG, "Press button: %d", pin); this->last_button=pin;