mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
get_network_info: check response length
old-commit-hash: def141571c38423fbf921da9ec858ca53da6d94e
This commit is contained in:
@@ -137,8 +137,12 @@ class Tici(HardwareBase):
|
||||
return None
|
||||
|
||||
if info and info.startswith('+QNWINFO: '):
|
||||
info = info.replace('+QNWINFO: ', '').replace('"', '')
|
||||
technology, operator, band, channel = info.split(',')
|
||||
info = info.replace('+QNWINFO: ', '').replace('"', '').split(',')
|
||||
|
||||
if len(info) != 4:
|
||||
return None
|
||||
|
||||
technology, operator, band, channel = info
|
||||
|
||||
return({
|
||||
'technology': technology,
|
||||
|
||||
Reference in New Issue
Block a user