Page 1 of 1

invalid conversion from 'int' to 'size_t*'

Posted: Sun Dec 10, 2023 11:46 pm
by lladam
ESP32 I2S:

int i2s_write_sample_nb(uint8_t sample){
return i2s_write((i2s_port_t)i2s_num, (const char *)&sample, sizeof(uint8_t), 100);

}

got error:
invalid conversion from 'int' to 'size_t*' {aka 'unsigned int*'} [-fpermissive]

how to fix?

Re: invalid conversion from 'int' to 'size_t*'

Posted: Mon Dec 11, 2023 12:37 am
by ESP_Sprite
Suggest you read the documentation of the ESP-IDF version you're using to cross-reference with the arguments of that API.