fix: relay buttons always enabled, touch sensor inversion, version bump
- MainActivity: remove isServer check — relay buttons always enabled when connected, regardless of device mode (fixes silently broken buttons when device mode accidentally set to 'client') - client.cpp: invert HS-S43A touch sensor readings (!tActive) — sensors are active LOW - build.gradle: bump versionCode 2, versionName 1.1 - platformio.ini: use stable by-id port for server ESP32 - firmware/*.bin: rebuilt with LED signaling and touch fixes
This commit is contained in:
parent
84e6ca8100
commit
95f440eec8
6 changed files with 11 additions and 13 deletions
|
|
@ -368,8 +368,8 @@ void loop() {
|
|||
}
|
||||
prevBtnActive = btnActive;
|
||||
|
||||
bool relay1State = t1Active || btnActive;
|
||||
bool relay2State = t2Active;
|
||||
bool relay1State = !t1Active || btnActive;
|
||||
bool relay2State = !t2Active;
|
||||
|
||||
CRGB ledColor;
|
||||
|
||||
|
|
@ -459,8 +459,8 @@ void loop() {
|
|||
static uint32_t heartbeat = 0;
|
||||
if (millis() - heartbeat > 60000) {
|
||||
Serial.printf("[heartbeat] t1=%s t2=%s btn=%s r1=%s r2=%s connected=%s\n",
|
||||
t1Active ? "YES" : "no",
|
||||
t2Active ? "YES" : "no",
|
||||
!t1Active ? "YES" : "no",
|
||||
!t2Active ? "YES" : "no",
|
||||
btnActive ? "YES" : "no",
|
||||
relay1State ? "ON" : "OFF",
|
||||
relay2State ? "ON" : "OFF",
|
||||
|
|
|
|||
Loading…
Reference in a new issue