tune_control: use orb queue advertisement consistently

This commit is contained in:
Beat Küng
2019-07-25 10:38:57 -04:00
committed by Daniel Agar
parent c869cb0ea5
commit 72ddf3e0aa
6 changed files with 9 additions and 6 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ int test_tone(int argc, char *argv[])
tune_control_s tune_control = {};
tune_control.tune_id = static_cast<int>(TuneID::NOTIFY_NEGATIVE);
orb_advert_t tune_control_pub = orb_advertise(ORB_ID(tune_control), &tune_control);
orb_advert_t tune_control_pub = orb_advertise_queue(ORB_ID(tune_control), &tune_control,
tune_control_s::ORB_QUEUE_LENGTH);
if (argc == 1) {
PX4_INFO("Volume silenced for testing predefined tunes 0-20.");