MavlinkOrbSubscription: optimize fields for size

reorder & reduce instance to uint8_t (which is more than enough).
Reduces sizeof(MavlinkOrbSubscription) from 40 to 24.

On Pixracer this frees almost 2KB of RAM
This commit is contained in:
Beat Küng
2016-10-18 15:31:37 +02:00
committed by Lorenz Meier
parent c50e4a6e21
commit 4da2ae2302
2 changed files with 5 additions and 5 deletions
@@ -50,11 +50,11 @@
MavlinkOrbSubscription::MavlinkOrbSubscription(const orb_id_t topic, int instance) :
next(nullptr),
_topic(topic),
_instance(instance),
_fd(-1),
_instance(instance),
_published(false),
_last_pub_check(0),
_subscribe_from_beginning(false)
_subscribe_from_beginning(false),
_last_pub_check(0)
{
}