Skip to content

Commit 86c9e3e

Browse files
authored
1 parent 3b972e8 commit 86c9e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/Esp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ uint32_t EspClass::getFreeHeap(void)
119119

120120
uint8_t EspClass::getChipRevision(void)
121121
{
122-
return (REG_READ(EFUSE_BLK0_RDATA3_REG) >> EFUSE_RD_CHIP_VER_RESERVE_S) && EFUSE_RD_CHIP_VER_RESERVE_V;
122+
return (REG_READ(EFUSE_BLK0_RDATA3_REG) >> EFUSE_RD_CHIP_VER_RESERVE_S) & EFUSE_RD_CHIP_VER_RESERVE_V;
123123
}
124124

125125
const char * EspClass::getSdkVersion(void)

0 commit comments

Comments
 (0)