mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
use unknown networkstrength, not none (#1222)
This commit is contained in:
+1
-1
@@ -233,7 +233,7 @@ def get_network_strength(network_type):
|
||||
return network_strength
|
||||
if network_type == NetworkType.wifi:
|
||||
out = subprocess.check_output('dumpsys connectivity', shell=True).decode('ascii')
|
||||
network_strength = NetworkStrength.none
|
||||
network_strength = NetworkStrength.unknown
|
||||
for line in out.split('\n'):
|
||||
if "SignalStrength" in line:
|
||||
arr = line.split(' ')
|
||||
|
||||
Reference in New Issue
Block a user