Fix QMI USSD async response handling and prevent st terminal popup

This commit is contained in:
Luxferre committed 2026-10-25 13:32:17 +02:00
1 parent fe8ba03941
commit b2216c186f
10 files changed
+148 -15

No files matched your search

+1 -1
View File
@@ -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;
}