Fix power button name
This commit is contained in:
@@ -264,7 +264,7 @@ void Hauslane::button_press(GPIOPin *pin, bool val) {
|
|||||||
this->last_button=pin;
|
this->last_button=pin;
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGD(TAG, "Release button: %d", pin);
|
ESP_LOGD(TAG, "Release button: %d", pin);
|
||||||
if (this->last_button=this->power_pin) {
|
if (this->last_button=this->pin_power) {
|
||||||
this->power= !this->power;
|
this->power= !this->power;
|
||||||
}
|
}
|
||||||
this->last_button=NULL;
|
this->last_button=NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user