From 24abb4cfa4a9b77d1d3dd5c67cf3e1883d229a7b Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 28 May 2020 22:15:46 +0200 Subject: [PATCH] Fixed coding rate reference in RNodeInterface --- RNS/Interfaces/RNodeInterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Interfaces/RNodeInterface.py b/RNS/Interfaces/RNodeInterface.py index 793ec7d..fb01b88 100644 --- a/RNS/Interfaces/RNodeInterface.py +++ b/RNS/Interfaces/RNodeInterface.py @@ -270,7 +270,7 @@ class RNodeInterface(Interface): def updateBitrate(self): try: - self.bitrate = self.r_sf * ( (4.0/self.cr) / (math.pow(2,self.r_sf)/(self.r_bandwidth/1000)) ) * 1000 + self.bitrate = self.r_sf * ( (4.0/self.r_cr) / (math.pow(2,self.r_sf)/(self.r_bandwidth/1000)) ) * 1000 self.bitrate_kbps = round(self.bitrate/1000.0, 2) RNS.log(str(self)+" On-air bitrate is now "+str(self.bitrate_kbps)+ " kbps", RNS.LOG_INFO) except: