Skip to content

Commit

Permalink
Fix drop for AdcDriver in deregister event callbacks (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetryaev authored Oct 6, 2024
1 parent 03571ac commit 59228d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,10 @@ pub mod continuous {
esp!(unsafe {
adc_continuous_register_event_callbacks(
self.handle,
core::ptr::null(),
&adc_continuous_evt_cbs_t {
on_conv_done: None,
on_pool_ovf: None,
},
core::ptr::null_mut(),
)
})
Expand Down

0 comments on commit 59228d3

Please sign in to comment.