From 39b3ca58717d4d9800ed0779837de17914b65460 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 24 Sep 2025 08:06:06 +0200 Subject: [PATCH] spiInterface: all methods: added a \n after command displayed (avoids unclear message when calee methods uses printxxx) --- src/spiInterface.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/spiInterface.cpp b/src/spiInterface.cpp index 571b6ec..990f5ad 100644 --- a/src/spiInterface.cpp +++ b/src/spiInterface.cpp @@ -26,7 +26,8 @@ SPIInterface::SPIInterface(const std::string &filename, int8_t verbose, bool SPIInterface::detect_flash() { bool ret = true; - printInfo("protect_flash: ", false); + + printInfo("Detect flash:"); /* move device to spi access */ if (!prepare_flash_access()) { @@ -55,7 +56,7 @@ bool SPIInterface::detect_flash() bool SPIInterface::protect_flash(uint32_t len) { bool ret = true; - printInfo("protect_flash: ", false); + printInfo("protect_flash:"); /* move device to spi access */ if (!prepare_flash_access()) { @@ -98,7 +99,7 @@ bool SPIInterface::unprotect_flash() SPIFlash flash(this, false, _spif_verbose); /* configure flash protection */ - printInfo("unprotect_flash: ", false); + printInfo("unprotect_flash:"); ret = (flash.disable_protection() == 0); if (!ret) printError("Fail"); @@ -129,7 +130,7 @@ bool SPIInterface::set_quad_bit(bool set_quad) SPIFlash flash(this, false, _spif_verbose); /* configure flash protection */ - printInfo("set_quad_bit: ", false); + printInfo("set_quad_bit:"); ret = flash.set_quad_bit(set_quad); if (!ret) printError("Fail"); @@ -148,7 +149,7 @@ bool SPIInterface::set_quad_bit(bool set_quad) bool SPIInterface::bulk_erase_flash() { bool ret = true; - printInfo("bulk_erase: ", false); + printInfo("bulk_erase:"); /* move device to spi access */ if (!prepare_flash_access()) {