diff --git a/cores/esp8266/core_esp8266_eboot_command.c b/cores/esp8266/core_esp8266_eboot_command.c index 60c92bf18..ee3ccb480 100644 --- a/cores/esp8266/core_esp8266_eboot_command.c +++ b/cores/esp8266/core_esp8266_eboot_command.c @@ -60,7 +60,7 @@ int eboot_command_read(struct eboot_command* cmd) } uint32_t crc32 = eboot_command_calculate_crc32(cmd); - if (cmd->magic & EBOOT_MAGIC_MASK != EBOOT_MAGIC || + if ((cmd->magic & EBOOT_MAGIC_MASK) != EBOOT_MAGIC || cmd->crc32 != crc32) { return 1; } diff --git a/cores/esp8266/core_esp8266_flash_utils.c b/cores/esp8266/core_esp8266_flash_utils.c index 6f8a34f41..0713998a6 100644 --- a/cores/esp8266/core_esp8266_flash_utils.c +++ b/cores/esp8266/core_esp8266_flash_utils.c @@ -28,7 +28,7 @@ int SPIEraseAreaEx(const uint32_t start, const uint32_t size) { - if (start & (FLASH_SECTOR_SIZE - 1) != 0) { + if ((start & (FLASH_SECTOR_SIZE - 1)) != 0) { return 1; }