fix: incorrect uninstall isr service
This commit is contained in:
1 parent
f8aef52a9c
commit
d76eec1753
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -99,7 +99,7 @@ esp_err_t zh_pcf8574_deinit(zh_pcf8574_handle_t *handle)
|
||||
gpio_isr_handler_remove((gpio_num_t)_interrupt_gpio);
|
||||
gpio_reset_pin((gpio_num_t)_interrupt_gpio);
|
||||
zh_vector_free(&_vector);
|
||||
if (_is_prev_gpio_isr_service == true)
|
||||
if (_is_prev_gpio_isr_service == false)
|
||||
{
|
||||
gpio_uninstall_isr_service();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user