Closed vpetryaev closed 1 month ago
Thanks for the PR fixing stuff!
Against what ESP_IDF_VERSION did you run that test? Do you per chance know if the adc_continuous_register_event_callbacks call always took a adc_continuous_evt_cbs_t or did they changed "recently" ?
In dropping AdcDriver instead of deregister event callbacks, set pointer to struct adc_continuous_evt_cbs_t to core::ptr::null(). As result, esp_idf_hal raise error:
Original documentation said "User can deregister a previously registered callback by calling this function and setting the to-be-deregistered callback member in the cbs structure to NULL". So, deregistration must set to NULL only function pointers, not pointer to their struct.
My test code: