BMM150: Fix priority assignment

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli 2020-01-22 17:40:18 +01:00 committed by Daniel Agar
parent db36edffe8
commit 421a06685c
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ int BMM150::init()
/* measurement will have generated a report, publish */
_topic = orb_advertise_multi(ORB_ID(sensor_mag), &mrb,
&_orb_class_instance, (external()) ? ORB_PRIO_HIGH : ORB_PRIO_MAX);
&_orb_class_instance, (external()) ? ORB_PRIO_MAX : ORB_PRIO_HIGH);
if (_topic == nullptr) {
PX4_WARN("ADVERT FAIL");