That Github issue suggests that you can execute;
sensor->set_reg(sensor, 0x3008, 0x40, enable ? 0x40 : 0x00);
How do you actually achieve that in the Arduino IDE examples for the XIAO ESP32S3 sense board provided by SEEED such as ‘take_photos.ino’, there is a compile error;
‘sensor’ was not declared in this scope
And set_reg( is not recognized too.