From 8d5792e32dc35441ec98339149fb4df3cc16f44b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 17 Oct 2019 23:09:47 -0700 Subject: [PATCH] altos/telefire: Don't arm the box if the local arm switch is off This skips arming the box when the local arming switch is off. This keeps the siren and light from going off, and also avoids attempting to fire the channels in case something else screwy is going on. Signed-off-by: Keith Packard --- src/drivers/ao_pad.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/ao_pad.c b/src/drivers/ao_pad.c index eeb9b505..ce9f8725 100644 --- a/src/drivers/ao_pad.c +++ b/src/drivers/ao_pad.c @@ -406,6 +406,10 @@ ao_pad(void) PRINTD ("time difference too large %d\n", time_difference); break; } + if (query.arm_status != AO_PAD_ARM_STATUS_ARMED) { + PRINTD ("box not armed locally\n"); + break; + } PRINTD ("armed\n"); ao_pad_armed = command.channels; ao_pad_arm_time = ao_time(); -- 2.30.2