pcf56065: Fix a compile warning uncovered by GCC8
Basically, use '!' instead of '~' on bools. Change-Id: If0d94b294e69a939101e16808d4adc50a9fe1c81
This commit is contained in:
parent
b11777b06c
commit
65db4acabe
1 changed files with 3 additions and 4 deletions
|
@ -127,7 +127,7 @@ bool rtc_check_alarm_started(bool release_alarm)
|
|||
|
||||
if (run_before) {
|
||||
rc = alarm_state;
|
||||
alarm_state &= ~release_alarm;
|
||||
alarm_state &= !release_alarm;
|
||||
} else {
|
||||
char rt[3], at[3];
|
||||
/* The Ipod bootloader seems to read (and thus clear) the PCF interrupt
|
||||
|
@ -165,4 +165,3 @@ void rtc_get_alarm(int *h, int *m)
|
|||
*m = BCD2DEC(buf[0]);
|
||||
*h = BCD2DEC(buf[1]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue