Skip to content

Commit

Permalink
ORB_PRIO: set ORB_PRIO_MIN to 1 instead of 0
Browse files Browse the repository at this point in the history
This is needed as the sensors app assumes a value of 0 means uninitialized.

Follow-up to 'Sensors app: Fix consistency checks', a6696d3
  • Loading branch information
bkueng authored and LorenzMeier committed Jan 3, 2017
1 parent 000d965 commit ab3b68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/uORB/uORB.h
Expand Up @@ -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,
Expand Down

0 comments on commit ab3b68c

Please sign in to comment.