From 0a54ff55f123eef8a31c5be97dc43e26c44ed172 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 12 Jun 2025 10:45:20 +0200 Subject: [PATCH 1/2] fix: remove duplicated define --- main/sketch.ino.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/main/sketch.ino.cpp b/main/sketch.ino.cpp index 92bbae1..1d9a510 100644 --- a/main/sketch.ino.cpp +++ b/main/sketch.ino.cpp @@ -43,8 +43,6 @@ extern "C" { #define SPI_BUFFER_LEN SPI_MAX_DMA_LEN -#define CONFIG_CONSOLE_UART_NUM 0 - int debug = 0; uint8_t* commandBuffer; From 832784deba47597d5062cf6e5879ace60305a75a Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 12 Jun 2025 10:45:56 +0200 Subject: [PATCH 2/2] debug: dump commands only if debug index > 1 --- main/sketch.ino.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/sketch.ino.cpp b/main/sketch.ino.cpp index 1d9a510..9eb97c5 100644 --- a/main/sketch.ino.cpp +++ b/main/sketch.ino.cpp @@ -150,7 +150,7 @@ void loop() { return; } - if (debug) { + if (debug > 1) { dumpBuffer("COMMAND", commandBuffer, commandLength); } @@ -160,7 +160,7 @@ void loop() { SPIS.transfer(responseBuffer, NULL, responseLength); - if (debug) { + if (debug > 1) { dumpBuffer("RESPONSE", responseBuffer, responseLength); } }