better logging
This commit is contained in:
parent
0e9c3dcd74
commit
47446f5977
1 changed files with 7 additions and 1 deletions
|
@ -249,7 +249,7 @@ void handleData1Interrupt() {
|
|||
#ifdef SERIAL_DEBUG
|
||||
Serial.println("Sending Request to Tinance2 for card: " + fullCardID);
|
||||
#endif
|
||||
|
||||
|
||||
// Create the JSON payload
|
||||
String payload = "{\"full_card_id\":\"" + String(fullCardID) + "\"}";
|
||||
// Send the HTTP request and get the response
|
||||
|
@ -607,8 +607,14 @@ void setup() {
|
|||
|
||||
if (settings.DoorDisabled() != previousDoorDisabled || isFirstRun) {
|
||||
if (settings.DoorDisabled()) {
|
||||
#ifdef SERIAL_DEBUG
|
||||
Serial.println("Disabling Door due to DoorDisabled setting");
|
||||
#endif
|
||||
unlockDoor(false); // Provide the required argument
|
||||
} else {
|
||||
#ifdef SERIAL_DEBUG
|
||||
Serial.println("Enabling Door due to DoorDisabled setting");
|
||||
#endif
|
||||
lockDoor();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue