We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c232235 + 3ad6b30 commit 14cbf42Copy full SHA for 14cbf42
components/drivers/spi/sfud/src/sfud.c
@@ -897,7 +897,7 @@ static sfud_err set_write_enabled(const sfud_flash *flash, bool enabled) {
897
if (enabled && (register_status & SFUD_STATUS_REGISTER_WEL) == 0) {
898
SFUD_INFO("Error: Can't enable write status.");
899
return SFUD_ERR_WRITE;
900
- } else if (!enabled && (register_status & SFUD_STATUS_REGISTER_WEL) == 1) {
+ } else if (!enabled && (register_status & SFUD_STATUS_REGISTER_WEL) != 0) {
901
SFUD_INFO("Error: Can't disable write status.");
902
903
}
0 commit comments