Skip to content

Commit

Permalink
Forward port changes from v0.6 release branch
Browse files Browse the repository at this point in the history
Merge SPI driver close command fix from release-0.6 into main branch.
  • Loading branch information
bettio committed Dec 25, 2024
2 parents 00f1288 + 0473735 commit 9ee3c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ might lead to a crash in certain situations.
certain VM instructions are used.
- Fixed ESP32 GPIO interrupt trigger `none`
- Fixed an issue where a timeout would occur immediately in a race condition
- Fixed SPI close command

## [0.6.5] - 2024-10-15

Expand Down
2 changes: 1 addition & 1 deletion src/platforms/esp32/components/avm_builtins/spi_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ static NativeHandlerResult spidriver_consume_mailbox(Context *ctx)
globalcontext_get_process_unlock(ctx->global, target);
mailbox_remove_message(&ctx->mailbox, &ctx->heap);

return cmd == CLOSE_ATOM ? NativeTerminate : NativeContinue;
return cmd == SPICloseCmd ? NativeTerminate : NativeContinue;
}

bool spi_driver_get_peripheral(term spi_port, spi_host_device_t *host_dev, GlobalContext *global)
Expand Down

0 comments on commit 9ee3c3b

Please sign in to comment.