It can be bogus, allowing the code to walk off the end of the
allocated data array.
Signed-off-by: Keith Packard <keithp@keithp.com>
companion.tick = tick;
companion.board_id = uint8(5);
companion.update_period = uint8(6+off);
companion.tick = tick;
companion.board_id = uint8(5);
companion.update_period = uint8(6+off);
- for (int i = 0; i < channels; i++)
+ for (int i = 0; i < companion.companion_data.length; i++)
companion.companion_data[i] = uint16(8 + off + i * 2);
}
companion.companion_data[i] = uint16(8 + off + i * 2);
}