From 8a6e01e2898e3b2b4627f7aa255fb39c131eaedf Mon Sep 17 00:00:00 2001 From: phdlee Date: Wed, 23 May 2018 15:07:37 +0900 Subject: [PATCH] improve external switch check routine --- ubitx_20/ubitx_ui.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubitx_20/ubitx_ui.ino b/ubitx_20/ubitx_ui.ino index cf52eb0..aa3bae9 100644 --- a/ubitx_20/ubitx_ui.ino +++ b/ubitx_20/ubitx_ui.ino @@ -199,7 +199,7 @@ int getBtnStatus(void){ readButtonValue = readButtonValue / 4; //return FKEY_VFOCHANGE; for (int i = 0; i < 16; i++) - if (KeyValues[i][0] <= readButtonValue && KeyValues[i][1] >= readButtonValue) + if (KeyValues[i][2] != 0 && KeyValues[i][0] <= readButtonValue && KeyValues[i][1] >= readButtonValue) return KeyValues[i][2]; //return i; }