Skip to content

Commit 670c9fd

Browse files
committed
Merge pull request #1658 from UncleGrumpy/spi_bug_fix
Fix ESP32 SPI driver about passing a term to a function expecting a non-term These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 4a6e5a9 + 40da120 commit 670c9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/esp32/components/avm_builtins/spi_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static NativeHandlerResult spidriver_consume_mailbox(Context *ctx)
658658
ret = OUT_OF_MEMORY_ATOM;
659659
}
660660
term unkn_a = globalcontext_make_atom(ctx->global, ATOM_STR("\xF", "unknown_command"));
661-
ret = create_pair(ctx, ERROR_ATOM, esp_err_to_term(ctx->global, unkn_a));
661+
ret = create_pair(ctx, ERROR_ATOM, unkn_a);
662662
}
663663

664664
term ret_msg;

0 commit comments

Comments
 (0)