version 9

Freeze current alarm output status when alarm is disbaled, and reset
alarm output when alarm mode is disabled.
Correct alarm mode mask.