Skip to content

Commit 8811d53

Browse files
committed
fix parentheses warning
1 parent 1544a6a commit 8811d53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/esp8266/core_esp8266_eboot_command.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int eboot_command_read(struct eboot_command* cmd)
6060
}
6161

6262
uint32_t crc32 = eboot_command_calculate_crc32(cmd);
63-
if (cmd->magic & EBOOT_MAGIC_MASK != EBOOT_MAGIC ||
63+
if ((cmd->magic & EBOOT_MAGIC_MASK) != EBOOT_MAGIC ||
6464
cmd->crc32 != crc32) {
6565
return 1;
6666
}

cores/esp8266/core_esp8266_flash_utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
int SPIEraseAreaEx(const uint32_t start, const uint32_t size)
3030
{
31-
if (start & (FLASH_SECTOR_SIZE - 1) != 0) {
31+
if ((start & (FLASH_SECTOR_SIZE - 1)) != 0) {
3232
return 1;
3333
}
3434

0 commit comments

Comments
 (0)