mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 17:17:34 +08:00
astyle src/drivers/vmount
This commit is contained in:
committed by
Lorenz Meier
parent
e43a8013dd
commit
f0cde91220
@@ -316,17 +316,17 @@ static int vmount_thread_main(int argc, char *argv[])
|
||||
if (updated) {
|
||||
//re-init objects
|
||||
if (thread_data.input_obj) {
|
||||
delete(thread_data.input_obj);
|
||||
delete (thread_data.input_obj);
|
||||
thread_data.input_obj = nullptr;
|
||||
}
|
||||
|
||||
if (thread_data.output_obj) {
|
||||
delete(thread_data.output_obj);
|
||||
delete (thread_data.output_obj);
|
||||
thread_data.output_obj = nullptr;
|
||||
}
|
||||
|
||||
if (manual_input) {
|
||||
delete(manual_input);
|
||||
delete (manual_input);
|
||||
manual_input = nullptr;
|
||||
}
|
||||
}
|
||||
@@ -338,17 +338,17 @@ static int vmount_thread_main(int argc, char *argv[])
|
||||
orb_unsubscribe(parameter_update_sub);
|
||||
|
||||
if (thread_data.input_obj) {
|
||||
delete(thread_data.input_obj);
|
||||
delete (thread_data.input_obj);
|
||||
thread_data.input_obj = nullptr;
|
||||
}
|
||||
|
||||
if (thread_data.output_obj) {
|
||||
delete(thread_data.output_obj);
|
||||
delete (thread_data.output_obj);
|
||||
thread_data.output_obj = nullptr;
|
||||
}
|
||||
|
||||
if (manual_input) {
|
||||
delete(manual_input);
|
||||
delete (manual_input);
|
||||
manual_input = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user