From ab3b68cf18e0b5b79b9606ae6491506ebef2c4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 3 Jan 2017 16:13:37 +0100 Subject: [PATCH] ORB_PRIO: set ORB_PRIO_MIN to 1 instead of 0 This is needed as the sensors app assumes a value of 0 means uninitialized. Follow-up to 'Sensors app: Fix consistency checks', a6696d339d --- src/modules/uORB/uORB.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/uORB/uORB.h b/src/modules/uORB/uORB.h index d4633c7d61..0035e0fd44 100644 --- a/src/modules/uORB/uORB.h +++ b/src/modules/uORB/uORB.h @@ -68,7 +68,7 @@ typedef const struct orb_metadata *orb_id_t; * Relevant for multi-topics / topic groups */ enum ORB_PRIO { - ORB_PRIO_MIN = 0, + ORB_PRIO_MIN = 1, // leave 0 free for other purposes, eg. marking an uninitialized value ORB_PRIO_VERY_LOW = 25, ORB_PRIO_LOW = 50, ORB_PRIO_DEFAULT = 75,