AP_Vehicle: add warning about get_scheduler_task implementations

We don't initialise these values we pass in.  Considering how few times
we need to get this right, requiring it of the implementation would seem
to make sense and save a few bytes.
This commit is contained in:
Peter Barker 2020-03-09 13:58:54 +11:00 committed by Peter Barker
parent aaf828c9d4
commit 621d029207
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ public:
};
void get_common_scheduler_tasks(const AP_Scheduler::Task*& tasks, uint8_t& num_tasks);
// implementations *MUST* fill in all passed-in fields or we get
// Valgrind errors
virtual void get_scheduler_tasks(const AP_Scheduler::Task *&tasks, uint8_t &task_count, uint32_t &log_bit) = 0;
/*