Fix bitrate being reset to 0

This commit is contained in:
jacob.eva 2024-06-04 15:53:37 +01:00
parent f65b858564
commit d3c7ea774d
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -367,7 +367,7 @@ class RNodeMultiInterface(Interface):
interface.OUT = True
interface.IN = self.IN
interface.bitrate = self.bitrate
#interface.bitrate = self.bitrate
interface.announce_rate_target = self.announce_rate_target
#interface.announce_rate_grace = self.announce_rate_grace
@ -586,6 +586,8 @@ class RNodeMultiInterface(Interface):
command == KISS.CMD_INT10_DATA or
command == KISS.CMD_INT11_DATA)):
in_frame = False
# debug
RNS.log("Received packet, index being used is: "+str(KISS.int_data_cmd_to_index(command)), RNS.LOG_DEBUG)
self.subinterfaces[KISS.int_data_cmd_to_index(command)].processIncoming(data_buffer)
data_buffer = b""
command_buffer = b""