mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +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} else {")
|
||||||
print("\t\t printf(\" Topic did not match any known topics\\n\");")
|
print("\t\t printf(\" Topic did not match any known topics\\n\");")
|
||||||
print("\t}")
|
print("\t}")
|
||||||
|
print("\t\torb_unsubscribe(sub);")
|
||||||
print("\t return 0;")
|
print("\t return 0;")
|
||||||
|
|
||||||
print("}")
|
print("}")
|
||||||
|
|||||||
Reference in New Issue
Block a user