no wifi disconnect until reboot on ssid cleared

This commit is contained in:
MichaelDvP
2023-10-24 21:54:57 +02:00
parent 5e7e1c30ca
commit ad51870d2c
8 changed files with 39 additions and 17 deletions

View File

@@ -46,6 +46,7 @@ PButton::PButton() {
longPressHappened_ = false; // whether or not the hold event happened already
vLongPressHappened_ = false; // whether or not the long hold event happened already
buttonBusy_ = false; // idle
pin_ = 255; // undefined
}
bool PButton::init(uint8_t pin, bool pullMode) {
@@ -83,7 +84,7 @@ void PButton::onVLongPress(uint16_t t, buttonEventHandler handler) {
}
bool PButton::check(void) {
if (!enabled_) {
if (!enabled_ || pin_ == 255) {
return false;
}