summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 20:17:42 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 20:17:42 -0500
commit41e73b50f0addac28ee0e87fe10043dc6d45ba68 (patch)
tree03ef5764d63837452eedc07dc682d2d6ebfc3c63 /menus.c
parent2a637c5759191f2911cdf5548d05496600e0655a (diff)
make hardware-detect flags global
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/menus.c b/menus.c
index 8231707..7abc8a5 100644
--- a/menus.c
+++ b/menus.c
@@ -2820,6 +2820,11 @@ void Menu_Check_Buttons(void)
int lower_encoder_val;
int encoder_change;
+ // abort if not running on the target board with the I2C bus
+ if (!globals.HWDetect.beaglebone) {
+ return;
+ }
+
/* get keypad state */
Read_Keypad(&button_port_val,&upper_encoder_val,&lower_encoder_val);