Fix QMI USSD async response handling and prevent st terminal popup
This commit is contained in:
1 parent
fe8ba03941
commit
b2216c186f
10 files changed
+148
-15
No files matched your search
@@ -1670,7 +1670,7 @@ inline std::string sendModemUssd(const std::string& input,
|
||||
|
||||
if (outSessionActive) {
|
||||
std::string stOut = runCaptureCmd(
|
||||
"mmcli -m any -K 2>/dev/null | grep 'modem.3gpp.ussd.state'");
|
||||
"mmcli -m any -K 2>/dev/null | grep -E 'modem\\.3gpp\\.ussd\\.(status|state)'");
|
||||
if (stOut.find("user-response") != std::string::npos) {
|
||||
*outSessionActive = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user