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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy