]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
change direction of vfo encoder
authorJohn Melton - G0ORX <john.d.melton@googlemail.c>
Thu, 28 Dec 2017 16:47:22 +0000 (16:47 +0000)
committerJohn Melton - G0ORX <john.d.melton@googlemail.c>
Thu, 28 Dec 2017 16:47:22 +0000 (16:47 +0000)
gpio.c
release/pihpsdr-v1.2.3.tar
release/pihpsdr.tar
release/pihpsdr/pihpsdr

diff --git a/gpio.c b/gpio.c
index 4449c0b49800eb60b4285ae3b2b3c56dab4e0368..183bd742ec5f78e1e2db6e050c7033eed67e4e55 100644 (file)
--- a/gpio.c
+++ b/gpio.c
@@ -595,9 +595,9 @@ static void vfoEncoderInt(int A_or_B) {
     vfo_B=switch_B;
     if(switch_A && switch_B) {
       if(A_or_B==VFO_ENCODER_B) {
-        vfoEncoderPos++;
-      } else {
         vfoEncoderPos--;
+      } else {
+        vfoEncoderPos++;
       }
     }
 }
index ea5781f9532cd332e95f0bd15c61629468974f6c..095135d48d92ce76aad3efb94447cc6c1f79b6ba 100644 (file)
Binary files a/release/pihpsdr-v1.2.3.tar and b/release/pihpsdr-v1.2.3.tar differ
index ea5781f9532cd332e95f0bd15c61629468974f6c..095135d48d92ce76aad3efb94447cc6c1f79b6ba 100644 (file)
Binary files a/release/pihpsdr.tar and b/release/pihpsdr.tar differ
index 20b3604b2f44cd3ec9f09a8ac2cec9f18ae96a63..ed6eaa63a7487dc4a32cda1946b87ed25f7bf2f9 100755 (executable)
Binary files a/release/pihpsdr/pihpsdr and b/release/pihpsdr/pihpsdr differ