compile with EMSESP_TEST to run tests (not DEBUG)

This commit is contained in:
Proddy
2023-02-21 21:28:19 +01:00
parent a6a1d44204
commit 6438d1ee57
9 changed files with 21 additions and 33 deletions

View File

@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if defined(EMSESP_DEBUG) || defined(EMSESP_STANDALONE)
#if defined(EMSESP_STANDALONE) || defined(EMSESP_TEST)
#include "test.h"
@@ -1785,7 +1785,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
#ifdef EMSESP_TEST
#ifndef EMSESP_STANDALONE
void Test::listDir(fs::FS & fs, const char * dirname, uint8_t levels) {
Serial.println();