pcf56065: Fix a compile warning uncovered by GCC8

Basically, use '!' instead of '~' on bools.

Change-Id: If0d94b294e69a939101e16808d4adc50a9fe1c81
This commit is contained in:
Solomon Peachy 2022-11-27 01:08:11 -05:00
parent b11777b06c
commit 65db4acabe

View file

@ -127,7 +127,7 @@ bool rtc_check_alarm_started(bool release_alarm)
if (run_before) { if (run_before) {
rc = alarm_state; rc = alarm_state;
alarm_state &= ~release_alarm; alarm_state &= !release_alarm;
} else { } else {
char rt[3], at[3]; char rt[3], at[3];
/* The Ipod bootloader seems to read (and thus clear) the PCF interrupt /* 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]); *m = BCD2DEC(buf[0]);
*h = BCD2DEC(buf[1]); *h = BCD2DEC(buf[1]);
} }