mavlink_command_sender: instantiate in initialize

This commit is contained in:
Julian Oes
2017-07-08 11:52:23 +02:00
committed by Lorenz Meier
parent c66af00753
commit 893b7b5d46
2 changed files with 4 additions and 12 deletions
@@ -98,10 +98,7 @@ private:
px4_sem_post(&_lock);
}
static bool _init;
static MavlinkCommandSender *_instance;
static px4_sem_t _lock;
// There are MAVLINK_COMM_0 to MAVLINK_COMM_3, so it should be 4.