stm32: pwr-v1: fix voltage detection logic
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
This commit is contained in:
parent
e1914eba74
commit
41e14b71b7
@ -172,7 +172,7 @@ threshold.
|
|||||||
|
|
||||||
bool pwr_voltage_high(void)
|
bool pwr_voltage_high(void)
|
||||||
{
|
{
|
||||||
return PWR_CSR & PWR_CSR_PVDO;
|
return !(PWR_CSR & PWR_CSR_PVDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user