Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 7c7b58d

Browse files
author
iwahdan88
committed
esp32/machspi: enabling 2nd SPI peref. On GPY boards
1 parent d6f870c commit 7c7b58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/mods/machspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ STATIC mp_obj_t pyb_spi_make_new(const mp_obj_type_t *type, mp_uint_t n_args, mp
347347
mp_arg_parse_all(n_args, all_args, &kw_args, MP_ARRAY_SIZE(args), pyb_spi_init_args, args);
348348

349349
// check the peripheral id
350-
#if defined(WIPY)
350+
#if defined(WIPY) || defined(GPY)
351351
if (args[0].u_int != 0 && args[0].u_int != 1) {
352352
#else
353353
if (args[0].u_int != 0) {

0 commit comments

Comments
 (0)