spiFlash: extract status register display from read_status_reg

This commit is contained in:
Gwenhael Goavec-Merou
2021-10-19 07:06:46 +02:00
parent 6714400909
commit 3730e8189d
7 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ void Altera::program(unsigned int offset)
try {
epcq.reset();
epcq.read_id();
epcq.read_status_reg();
epcq.display_status_reg(epcq.read_status_reg());
epcq.erase_and_prog(offset, data, length);
} catch (std::exception &e) {
printError(e.what());