print_load: Remove reference to CONFIG_MAX_TASKS

This is removed from nuttx, and the size of s->last_times can be just checked
with sizeof()

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-09-23 13:57:48 +03:00
parent e40b29a6d8
commit 5320653aba
@@ -72,7 +72,7 @@ void init_print_load(struct print_load_s *s)
s->new_time = hrt_absolute_time();
s->interval_start_time = s->new_time;
for (int i = 0; i < CONFIG_MAX_TASKS; i++) {
for (size_t i = 0; i < sizeof(s->last_times) / sizeof(s->last_times[0]); i++) {
s->last_times[i] = 0;
}