diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2020-07-27 09:52:30 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2020-07-27 09:52:30 -0400 |
commit | 188ba0eb92a6961059fd9052130806b0bc2f5e23 (patch) | |
tree | 5724bc0df7acaec4c09c59fa95eb1610cb729833 /menus.c | |
parent | 4ce3a41b8a9c1cbc8db34b6d98c0417b291a3cf1 (diff) |
add support for new jig pin on keypad 104G
Diffstat (limited to 'menus.c')
-rw-r--r-- | menus.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)) { |