mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:37:34 +08:00
run astyle
This commit is contained in:
committed by
Lorenz Meier
parent
8186139dad
commit
52465d07b9
@@ -72,9 +72,11 @@ bool sPort_init()
|
||||
vehicle_status = malloc(sizeof(struct vehicle_status_s));
|
||||
sensor_data = malloc(sizeof(struct sensor_combined_s));
|
||||
global_pos = malloc(sizeof(struct vehicle_global_position_s));
|
||||
|
||||
if (vehicle_status == NULL || sensor_data == NULL || global_pos == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
global_position_sub = orb_subscribe(ORB_ID(vehicle_global_position));
|
||||
sensor_sub = orb_subscribe(ORB_ID(sensor_combined));
|
||||
vehicle_status_sub = orb_subscribe(ORB_ID(vehicle_status));
|
||||
|
||||
Reference in New Issue
Block a user