mirror of https://github.com/ArduPilot/ardupilot
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:
parent
aaf828c9d4
commit
621d029207
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue