Skip to content

Commit

Permalink
Fix ESP32 gpio driver error returns to match spec
Browse files Browse the repository at this point in the history
Changes error returns to match the spec and ofther platforms. Nifs now raise any errors, and port
function errors return `{error, Reason}`.

Closes atomvm#894

Signed-off-by: Winford <[email protected]>
  • Loading branch information
UncleGrumpy committed Dec 21, 2024
1 parent f61de80 commit aca3489
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 60 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `code:all_loaded/0` and `code:all_available/0`
- Added menuconfig option for enabling USE_USB_SERIAL, eg. serial over USB for certain ESP32-S2 boards etc.

### Fixed
- ESP32 GPIO driver now matches spec for error returns, nifs raise `Error`, port functions return `{error, Reason}`

## [0.6.6] - Unreleased

### Added
Expand Down
Loading

0 comments on commit aca3489

Please sign in to comment.