mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-20 17:05:06 +00:00
Fix unPhone
This commit is contained in:
parent
ee9d75e9f0
commit
e917dc6367
@ -101,9 +101,8 @@ static error_t acquire_button(const GpioPinSpec& pin, void (*callback)(void*), v
|
|||||||
return ERROR_RESOURCE;
|
return ERROR_RESOURCE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error == ERROR_NONE) {
|
auto error = gpio_descriptor_add_callback(descriptor, callback, arg);
|
||||||
error = gpio_descriptor_add_callback(descriptor, callback, arg);
|
|
||||||
}
|
|
||||||
if (error == ERROR_NONE) {
|
if (error == ERROR_NONE) {
|
||||||
error = gpio_descriptor_enable_interrupt(descriptor);
|
error = gpio_descriptor_enable_interrupt(descriptor);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user