-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Labels
breakingThis change has the potential to break existing applicationsThis change has the potential to break existing applicationslib:eavmlibErlang AtomVM libraryErlang AtomVM library
Milestone
Description
The AtomVM gpio interface returns bare error atoms in error conditions, which can make it difficult to diagnose why an error occurred.
We need to change the return type of these operations from error to {error, Reason :: term()}, where Reason is an appropriate term that can be used for logging or even for a program to take action.
The following functions need to be modified:
gpio:close/0gpio:stop/0gpio:set_direction/3gpio:set_level/3gpio:set_int/3gpio:remove_int/2gpio:set_pin_mode/2gpio:set_pull_mode/2gpio:hold_en/1gpio:hold_dis/1gpio:digital_write/2gpio:attach_interrupt/2gpio:detach_interrupt/1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breakingThis change has the potential to break existing applicationsThis change has the potential to break existing applicationslib:eavmlibErlang AtomVM libraryErlang AtomVM library