Fix 'equality comparison with extraneous parentheses' warning/error
This commit is contained in:
parent
342e7d1ac6
commit
d79ef84e40
|
@ -1330,11 +1330,11 @@ static uint8_t FLASH_OB_GetRDP(void)
|
||||||
{
|
{
|
||||||
uint8_t readstatus = OB_RDP_LEVEL_0;
|
uint8_t readstatus = OB_RDP_LEVEL_0;
|
||||||
|
|
||||||
if((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_2))
|
if (*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_2)
|
||||||
{
|
{
|
||||||
readstatus = OB_RDP_LEVEL_2;
|
readstatus = OB_RDP_LEVEL_2;
|
||||||
}
|
}
|
||||||
else if((*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_1))
|
else if (*(__IO uint8_t*)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_1)
|
||||||
{
|
{
|
||||||
readstatus = OB_RDP_LEVEL_1;
|
readstatus = OB_RDP_LEVEL_1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue