better logging

This commit is contained in:
Matthew Frost 2023-12-27 21:59:11 +01:00
parent 0e9c3dcd74
commit 47446f5977

View file

@ -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();
}