mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
spiFlash: extract status register display from read_status_reg
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ void Gowin::program(unsigned int offset)
|
||||
SPIFlash spiFlash(this, (_verbose ? 1 : (_quiet ? -1 : 0)));
|
||||
spiFlash.reset();
|
||||
spiFlash.read_id();
|
||||
spiFlash.read_status_reg();
|
||||
spiFlash.display_status_reg(spiFlash.read_status_reg());
|
||||
if (spiFlash.erase_and_prog(offset, data, length / 8) != 0)
|
||||
throw std::runtime_error("Error: write to flash failed");
|
||||
if (_verify)
|
||||
|
||||
Reference in New Issue
Block a user