taligentx / dscKeybusInterface

An Arduino/esp8266/esp32 library to directly interface with DSC security systems.
GNU General Public License v3.0
496 stars 125 forks source link

Checks the access code used to arm or disarm #284

Closed taligentx closed 2 years ago

taligentx commented 2 years ago

Discussed in https://github.com/taligentx/dscKeybusInterface/discussions/276

Originally posted by **SebastianJoan** November 16, 2021 when i try to Checks the access code used to arm or disarm it only show access code used to arm the alarm but it didn´t show the user code used to disarm the alarm if (dsc.accessCodeChanged[partition]) { dsc.accessCodeChanged[partition] = false; // Resets the access code status flag Serial.print(F("Partition ")); Serial.print(partition + 1); switch (dsc.accessCode[partition]) { case 40: Serial.print(F(": Master")); break; default: Serial.print(F(": Access")); break; } Serial.print(F(" code ")); Serial.println(dsc.accessCode[partition]); }
taligentx commented 2 years ago

Fixed as per #276