Skip to content
RED SAGSkills
hard20 pts · first answer countsrtosfreertostasks

Parameter from a function that returns

What is wrong with this code?

void start_sensor(int id) {
    sensor_cfg_t cfg = { .id = id, .rate = 100 };
    xTaskCreate(sensor_task, "s", 256, &cfg, 3, NULL);
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions