Skip to content

RSSI hysteresis thresholds swapped #4

@marcelschreiner

Description

@marcelschreiner

The unlock/lock RSSI thresholds appear inverted: the code unlocks when RSSI > -90 and locks when RSSI <= -80. The inline comments say the opposite (“unlock on weaker signal / lock on stronger”), so the hysteresis currently favors unlocking at close range and locking even while the phone is still nearby.

current code:

const int RSSI_UNLOCK_THRESHOLD = -90;  // Öffnen bei schwächerem Signal (größere Reichweite)
const int RSSI_LOCK_THRESHOLD = -80;    // Schließen bei stärkerem Signal (kleinere Reichweite)

bugfix:

const int RSSI_UNLOCK_THRESHOLD = -80;  // Öffnen bei stärkerem Signal (kleine Reichweite)
const int RSSI_LOCK_THRESHOLD = -90;    // Schließen bei schwächerem Signal (grössere Reichweite)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions