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",
|
"MicrophoneVolume",
|
||||||
"SpeakerVolume"]:
|
"SpeakerVolume"]:
|
||||||
val = int(properties[key])
|
val = int(properties[key])
|
||||||
|
elif key in ["MainMenu"]:
|
||||||
|
val = ", ".join([ text + " (" + str(int(icon)) +
|
||||||
|
")" for text, icon in properties[key] ])
|
||||||
else:
|
else:
|
||||||
val = str(properties[key])
|
val = str(properties[key])
|
||||||
print " %s = %s" % (key, val)
|
print " %s = %s" % (key, val)
|
||||||
|
|
Loading…
Reference in New Issue