summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
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);