changed the return code of armGetActiveAlarm