Fix displaying openCom device bitrate

This commit is contained in:
jacob.eva 2024-09-16 18:30:07 +01:00
parent b118816b10
commit d28f281a39
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -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: