From 116900d52189b9c49f317599cc8265a262553bb3 Mon Sep 17 00:00:00 2001 From: Djordje Nedic Date: Tue, 25 Jun 2024 13:11:58 +0200 Subject: [PATCH] fix: Fix ESP SPI port duplicate tracing This removes tracing left over presumably from a revision of the port in development. Tracing is now only done after successful reads and writes. --- port/esp32_spi_port.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/port/esp32_spi_port.c b/port/esp32_spi_port.c index 4d886bb..324850d 100644 --- a/port/esp32_spi_port.c +++ b/port/esp32_spi_port.c @@ -150,10 +150,6 @@ esp_loader_error_t loader_port_write(const uint8_t *data, const uint16_t size, c return ESP_LOADER_ERROR_INVALID_PARAM; } -#if SERIAL_FLASHER_DEBUG_TRACE - serial_debug_print(data, size, true); -#endif - spi_transaction_t transaction = { .tx_buffer = data, .rx_buffer = NULL, @@ -165,7 +161,7 @@ esp_loader_error_t loader_port_write(const uint8_t *data, const uint16_t size, c if (err == ESP_OK) { #if SERIAL_FLASHER_DEBUG_TRACE - serial_debug_print(data, size, false); + serial_debug_print(data, size, true); #endif return ESP_LOADER_SUCCESS; } else if (err == ESP_ERR_TIMEOUT) { @@ -185,10 +181,6 @@ esp_loader_error_t loader_port_read(uint8_t *data, const uint16_t size, const ui return ESP_LOADER_ERROR_INVALID_PARAM; } -#if SERIAL_FLASHER_DEBUG_TRACE - serial_debug_print(data, size, true); -#endif - spi_transaction_t transaction = { .tx_buffer = NULL, .rx_buffer = data,