summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2020-07-27 09:52:30 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2020-07-27 09:52:30 -0400
commit188ba0eb92a6961059fd9052130806b0bc2f5e23 (patch)
tree5724bc0df7acaec4c09c59fa95eb1610cb729833 /menus.c
parent4ce3a41b8a9c1cbc8db34b6d98c0417b291a3cf1 (diff)
add support for new jig pin on keypad 104G
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/menus.c b/menus.c
index f717508..840211e 100644
--- a/menus.c
+++ b/menus.c
@@ -2803,6 +2803,7 @@ static void Read_Keypad(int *button_port_val, int *upper_encoder_val, int *lower
#define Over_Temp 0x10 /* over-temperature */
#define Over_Volt 0x20 /* over-voltage */
#define Over_Other 0x40 /* over-other */
+#define Jig_Input 0x08 /* jig open */
int new_button_state;
@@ -2844,6 +2845,7 @@ static void Read_Keypad(int *button_port_val, int *upper_encoder_val, int *lower
/* valid for both local and remote modes */
if ( !(*upper_encoder_val & Over_Temp)
|| !(*upper_encoder_val & Over_Volt)
+ || !(*upper_encoder_val & Jig_Input)
|| !(*upper_encoder_val & Over_Other)
|| !(*button_port_val & Overload_Input) ) {
@@ -2866,6 +2868,8 @@ static void Read_Keypad(int *button_port_val, int *upper_encoder_val, int *lower
queue_and_broadcast_sensor_alarm(Overtemp_Detected);
} else if (!(*upper_encoder_val & Over_Volt)) {
queue_and_broadcast_sensor_alarm(Overvolt_Detected);
+ } else if (!(*upper_encoder_val & Jig_Input)) {
+ queue_and_broadcast_sensor_alarm(Jig_Open_Detected);
} else if (!(*upper_encoder_val & Over_Other)) {
queue_and_broadcast_sensor_alarm(Device_Specific_Aux_Error_Detected);
} else if (!(*button_port_val & Overload_Input)) {