mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
unsubscribe from topic to prevent overflow in device handler list
This commit is contained in:
@@ -200,6 +200,7 @@ for index,m in enumerate(messages[1:]):
|
||||
print("\t} else {")
|
||||
print("\t\t printf(\" Topic did not match any known topics\\n\");")
|
||||
print("\t}")
|
||||
print("\t\torb_unsubscribe(sub);")
|
||||
print("\t return 0;")
|
||||
|
||||
print("}")
|
||||
|
||||
Reference in New Issue
Block a user