Browse Source

fix: swap flash mode key bindings for volume buttons in bypass patch

TheWildJames 3 months ago
parent
commit
6fbef060a2
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/actions/build-kernel/patches/bypass.patch

+ 4 - 4
.github/actions/build-kernel/patches/bypass.patch

@@ -9,9 +9,9 @@ index 35b6e59..e2bcb62 100755
 +handle_input() {
 +    while true; do
 +        case $(getevent -lqc "/dev/input/event2" 2>/dev/null | grep -m1 'DOWN') in
-+            *KEY_VOLUMEUP*) echo "normal"; return ;;
-+            *KEY_VOLUMEDOWN*) echo "bypass"; return ;;
 +            *KEY_POWER*) echo "cancel"; return ;;
++            *KEY_VOLUMEUP*) echo "bypass"; return ;;
++            *KEY_VOLUMEDOWN*) echo "normal"; return ;;
 +        esac
 +    done
 +}
@@ -23,8 +23,8 @@ index 35b6e59..e2bcb62 100755
 +    ui_print "  -> Use it only when Normal fails to boot due to kernel module incompatibilities"
 +    ui_print " "
 +    ui_print "  -> Choose Kernel Image:"
-+    ui_print "  -> VOL+ = Normal"
-+    ui_print "  -> VOL- = Bypass"
++    ui_print "  -> VOL+ = Bypass"
++    ui_print "  -> VOL- = Normal"
 +    ui_print "  -> POWER = Cancel"
 +    ui_print " "
 +