mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:53:34 +08:00
topic_listener: avoid code generation, use existing metadata at runtime
This reduces flash size for v5 by ~110KB, the topic listener now only adds about 1.2KB.
This commit is contained in:
@@ -1508,7 +1508,7 @@ int PX4IO::print_status()
|
||||
uORB::SubscriptionData<px4io_status_s> status_sub{ORB_ID(px4io_status)};
|
||||
status_sub.update();
|
||||
|
||||
print_message(status_sub.get());
|
||||
print_message(ORB_ID(px4io_status), status_sub.get());
|
||||
|
||||
/* now clear alarms */
|
||||
io_reg_set(PX4IO_PAGE_STATUS, PX4IO_P_STATUS_ALARMS, 0x0000);
|
||||
|
||||
Reference in New Issue
Block a user