mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
spiFlash: fix len_to_bp mask
This commit is contained in:
+1
-1
@@ -436,7 +436,7 @@ uint8_t SPIFlash::len_to_bp(uint32_t len)
|
||||
/* reconstruct code based on each BPx bit */
|
||||
uint8_t tmp = 0;
|
||||
for (int i = 0; i < 4; i++)
|
||||
if (bp >> i)
|
||||
if (bp & (1 << i))
|
||||
tmp |= _flash_model->bp_offset[i];
|
||||
|
||||
return tmp;
|
||||
|
||||
Reference in New Issue
Block a user