From cf53c56ac7fd4fbce09da07b5b28bea213668cf1 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 5 Feb 2023 10:58:01 +0100 Subject: [PATCH] add listDir to debug too --- src/test/test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/test.cpp b/src/test/test.cpp index ede3941a7..7d6e7be79 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -1,7 +1,7 @@ /* * EMS-ESP - https://github.com/emsesp/EMS-ESP - * Copyright 2020 Paul Derbyshire +* Copyright 2020 Paul Derbyshire * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1783,6 +1783,7 @@ void Test::add_device(uint8_t device_id, uint8_t product_id) { uart_telegram({device_id, EMSESP_DEFAULT_EMS_BUS_ID, EMSdevice::EMS_TYPE_VERSION, 0, product_id, 1, 0}); } +#ifdef EMSESP_DEBUG #ifndef EMSESP_STANDALONE void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) { Serial.println(); @@ -1817,6 +1818,7 @@ void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) { } } #endif +#endif } // namespace emsesp