gpssim: unadvertise gps topics

This commit is contained in:
Beat Küng
2018-06-26 15:51:17 +02:00
parent bb19c2bc8b
commit 0ac1ef12c7

View File

@@ -355,6 +355,14 @@ GPSSIM::task_main()
}
}
if (_report_gps_pos_pub) {
orb_unadvertise(_report_gps_pos_pub);
}
if (_report_sat_info_pub) {
orb_unadvertise(_report_sat_info_pub);
}
PX4_INFO("exiting");
/* tell the dtor that we are exiting */