mirror of git://git.sysmocom.de/ofono
list-modems: Pretty-print main menu
This commit is contained in:
parent
c8c8116db4
commit
df35a66c64
|
@ -58,6 +58,9 @@ for path in properties["Modems"]:
|
|||
"MicrophoneVolume",
|
||||
"SpeakerVolume"]:
|
||||
val = int(properties[key])
|
||||
elif key in ["MainMenu"]:
|
||||
val = ", ".join([ text + " (" + str(int(icon)) +
|
||||
")" for text, icon in properties[key] ])
|
||||
else:
|
||||
val = str(properties[key])
|
||||
print " %s = %s" % (key, val)
|
||||
|
|
Loading…
Reference in New Issue