This uses dynamic allocation, which does not work and results in an
exception in libc code. Since, we don't have the libc source, I'm not sure
what is exactly the reason.
Fixes #1579
{
uint32_t i;
const struct port_desc *port = &port_desc[PORT_ID_HOUTIFBK];
{
uint32_t i;
const struct port_desc *port = &port_desc[PORT_ID_HOUTIFBK];
- uint16_t values[port->numchn];
+ assert(ARRAY_SIZE(values) == port->numchn);
ret = port->get(port, values, sizeof(values));
if (ret < 0)
ret = port->get(port, values, sizeof(values));
if (ret < 0)