mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 21:40:36 +01:00
Fix displaying openCom device bitrate
This commit is contained in:
parent
b118816b10
commit
d28f281a39
@ -347,15 +347,14 @@ class SidebandService():
|
|||||||
if type(self.sideband.interface_rnode) is RNS.Interfaces.Android.RNodeMultiInterface.RNodeMultiInterface:
|
if type(self.sideband.interface_rnode) is RNS.Interfaces.Android.RNodeMultiInterface.RNodeMultiInterface:
|
||||||
rs = ""
|
rs = ""
|
||||||
for subinterface in self.sideband.interface_rnode.subinterfaces:
|
for subinterface in self.sideband.interface_rnode.subinterfaces:
|
||||||
if subinterface is not int:
|
if type(subinterface) is not int:
|
||||||
rs += "On-air at "+str(subinterface.bitrate_kbps)+" Kbps \n" # \todo does this work?
|
rs += subinterface.name + ": " + "On-air at "+str(subinterface.bitrate_kbps)+" Kbps \n"
|
||||||
RNS.log("On-air iteration!", RNS.LOG_DEBUG) # debug
|
|
||||||
else:
|
else:
|
||||||
rs = "On-air at "+str(self.sideband.interface_rnode.bitrate_kbps)+" Kbps"
|
rs = "On-air at "+str(self.sideband.interface_rnode.bitrate_kbps)+" Kbps"
|
||||||
else:
|
else:
|
||||||
rs = "Interface Down"
|
rs = "Interface Down"
|
||||||
|
|
||||||
stat += "[b]RNode[/b]\n{rs}\n\n".format(rs=rs)
|
stat += "[b]openCom device[/b]\n{rs}\n\n".format(rs=rs)
|
||||||
|
|
||||||
if self.sideband.interface_modem != None:
|
if self.sideband.interface_modem != None:
|
||||||
if self.sideband.interface_modem.online:
|
if self.sideband.interface_modem.online:
|
||||||
|
Loading…
Reference in New Issue
Block a user