From 0d0ff1d4b8b766e61e55aa0a05856204da5ac79b Mon Sep 17 00:00:00 2001 From: x-shark <958274685@qq.com> Date: Mon, 14 Apr 2025 05:31:43 +0000 Subject: [PATCH] fix foxconn pcie --- luci/luci-app-qmodem/root/usr/share/qmodem/vendor/foxconn.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/foxconn.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/foxconn.sh index 6347f3e..cdefea5 100644 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/foxconn.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/vendor/foxconn.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Copyright (C) 2025 x-shark source /usr/share/qmodem/generic.sh debug_subject="quectel_ctrl" @@ -37,8 +38,8 @@ function get_mode(){ cfg=$(at $at_port "AT^PCIEMODE?") config_type=`echo -e "$cfg" | grep -o '[0-9]'` if [ "$config_type" = "1" ]; then - mode="0" - json_add_int disable_mode_btn 0 + mode_num="0" + json_add_int disable_mode_btn 1 else ucfg=$(at $at_port "AT+USBSWITCH?")