Skip to content

Commit

Permalink
fix missing unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Vollbrecht committed Jan 30, 2024
1 parent 00d94f1 commit 7c0e52f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1464,9 +1464,10 @@ fn gpio_reset_without_pull(pin: gpio_num_t) -> Result<(), EspError> {
intr_type: esp_idf_sys::gpio_int_type_t_GPIO_INTR_DISABLE,
};

unsafe { unsubscribe_pin(pin)? };
esp!(gpio_config(&cfg))?;

unsafe {
unsubscribe_pin(pin)?;
esp!(gpio_config(&cfg))?;
}
Ok(())
}

Expand Down

0 comments on commit 7c0e52f

Please sign in to comment.