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;