commit | 4c804eaedb92a901d52d8630b5dcc2c4ef0eddad | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Tue Apr 13 11:56:40 2021 -0700 |
committer | Hyunsun Moon <hyunsun.moon@gmail.com> | Tue Apr 13 11:56:40 2021 -0700 |
tree | 6f73a49385fbf11ad257d7355a38a31f9f04d3c0 | |
parent | b980ed33266331ef6188951aaa1af24bb6e3c30b [diff] |
Fix signal quality return value when it failed to detect Change-Id: Iae7c57b18e43621be6af076497bdb8480a166d06
diff --git a/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py b/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py index 6cb581d..f669471 100755 --- a/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py +++ b/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py
@@ -234,7 +234,7 @@ success, result = modem.write('AT+CESQ') if not success or 'CESQ: ' not in result: logging.error("Failed to get signal quality") - return 0, 0 + return { 'rsrq': 0, 'rsrp': 0 } logging.debug("%s", result) tmp_rsrq = result.split('CESQ:')[1].split(',')[4]