invalid conversion from 'int' to 'size_t*'

lladam
Posts: 44
Joined: Tue Jul 20, 2021 12:14 am

invalid conversion from 'int' to 'size_t*'

Postby lladam » Sun Dec 10, 2023 11:46 pm

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?

ESP_Sprite
Posts: 9729
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Dec 11, 2023 12:37 am

Suggest you read the documentation of the ESP-IDF version you're using to cross-reference with the arguments of that API.

Who is online

Users browsing this forum: No registered users and 111 guests