From ce04a8e1eb76d679b7efe3c9ab5a9d20298f6aad Mon Sep 17 00:00:00 2001 From: Markus Sattler Date: Fri, 5 Jun 2015 14:57:12 +0200 Subject: [PATCH] fix parentheses warning --- .../esp8266/cores/esp8266/core_esp8266_eboot_command.c | 2 +- .../esp8266com/esp8266/cores/esp8266/core_esp8266_flash_utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_eboot_command.c b/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_eboot_command.c index 60c92bf18..ee3ccb480 100644 --- a/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_eboot_command.c +++ b/hardware/esp8266com/esp8266/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/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_flash_utils.c b/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_flash_utils.c index 6f8a34f41..0713998a6 100644 --- a/hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_flash_utils.c +++ b/hardware/esp8266com/esp8266/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; }