Use ESP Logging Macros for pinmapping

This commit is contained in:
Thomas Basler
2025-04-18 16:51:38 +02:00
parent 77eff68c5f
commit ac03cbff3c

View File

@@ -3,13 +3,15 @@
* Copyright (C) 2022 - 2025 Thomas Basler and others * Copyright (C) 2022 - 2025 Thomas Basler and others
*/ */
#include "PinMapping.h" #include "PinMapping.h"
#include "MessageOutput.h"
#include "Utils.h" #include "Utils.h"
#include <ArduinoJson.h> #include <ArduinoJson.h>
#include <LittleFS.h> #include <LittleFS.h>
#include <SpiManager.h> #include <SpiManager.h>
#include <string.h> #include <string.h>
#undef TAG
static const char* TAG = "pingmapping";
#ifndef DISPLAY_TYPE #ifndef DISPLAY_TYPE
#define DISPLAY_TYPE 0U #define DISPLAY_TYPE 0U
#endif #endif
@@ -216,7 +218,7 @@ bool PinMappingClass::init(const String& deviceMapping)
// Deserialize the JSON document // Deserialize the JSON document
DeserializationError error = deserializeJson(doc, f); DeserializationError error = deserializeJson(doc, f);
if (error) { if (error) {
MessageOutput.printf("Failed to read file, using default configuration\n"); ESP_LOGW(TAG, "Failed to read file, using default configuration");
} }
for (uint8_t i = 0; i < doc.size(); i++) { for (uint8_t i = 0; i < doc.size(); i++) {