invalid conversion from 'int' to 'size_t*'
Posted: 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?
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?