Fix indexing and variable errors

This commit is contained in:
jacob.eva 2024-06-06 19:05:10 +01:00
parent 1508e7427b
commit ab4fcca81c
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -992,9 +992,10 @@ class RNodeSubInterface(Interface):
self.packet_queue = []
self.interface_ready = False
self.parent_interface = parent_interface
self.announce_rate_target = None
# add this interface to the subinterfaces array
self.parent_interface.subinterfaces.insert(index, self)
self.parent_interface.subinterfaces[index] = self
self.validcfg = True
if (self.interface_type == "SX1262" or self.interface_type == "SX1276" or self.interface_type == "SX1278"):