We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d5bcca commit cc34b08Copy full SHA for cc34b08
drivers/memory/spiflash.c
@@ -181,8 +181,8 @@ void mp_spiflash_init(mp_spiflash_t *self) {
181
// Set QE bit
182
uint32_t data = (mp_spiflash_read_cmd(self, CMD_RDSR, 1) & 0xff)
183
| (mp_spiflash_read_cmd(self, CMD_RDCR, 1) & 0xff) << 8;
184
- if (!(data & (QSPI_QE_MASK << 16))) {
185
- data |= QSPI_QE_MASK << 16;
+ if (!(data & (QSPI_QE_MASK << 8))) {
+ data |= QSPI_QE_MASK << 8;
186
mp_spiflash_write_cmd(self, CMD_WREN);
187
mp_spiflash_write_cmd_data(self, CMD_WRSR, 2, data);
188
mp_spiflash_wait_wip0(self);
0 commit comments