Commit 7e91ee57 authored by Arist's avatar Arist
Browse files

fix(max86150): avoid stack overflow in pycardium by using smaller buf

parent ae8ff5ae
Pipeline #4497 passed with stages
in 2 minutes and 19 seconds
STATIC mp_obj_t mp_max86150_read_sensor(mp_obj_t stream_id_in)
struct max86150_sensor_data buf[256];
// do not use too big buf
// 256*12 is close to stack size of 4096, reduced to 64
struct max86150_sensor_data buf[64];
int stream_id = mp_obj_get_int(stream_id_in);
int n = epic_stream_read(stream_id, buf, sizeof(buf));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment