Skip to content

Commit

Permalink
Merge branch 'fix/esp_spi_port_duplicate_tracing' into 'master'
Browse files Browse the repository at this point in the history
fix: Fix ESP SPI port duplicate tracing

Closes ESF-142

See merge request espressif/esp-serial-flasher!109
  • Loading branch information
DNedic committed Jun 25, 2024
2 parents 7e9dc0c + 116900d commit 91cc09e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions port/esp32_spi_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand All @@ -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,
Expand Down

0 comments on commit 91cc09e

Please sign in to comment.