- reduce indentation - sanitize logic in rtc_set_alarm() - ILR register is clear-on-write, writing 0 has no effect