fix: relay buttons always enabled, touch sensor inversion, version bump
All checks were successful
CI / firmware (pull_request) Successful in 1m19s
CI / android (pull_request) Successful in 9s

- 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:
eddy 2026-08-02 20:12:07 +02:00
commit 95f440eec8
6 changed files with 11 additions and 13 deletions

View file

@ -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",