Skip to content

Commit

Permalink
ports/psoc6/sdcard.py: Added warning ignored parameter.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <[email protected]>
  • Loading branch information
jaenrig-ifx committed Aug 7, 2024
1 parent a024293 commit 308aff3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ports/psoc6/machine_sdcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ static mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args
return mp_const_none;
}

if (args[ARG_slot].u_int != -1) {
mp_printf(&mp_plat_print, "machine.SDCard: slot parameter is ignored in this port.\n");
}

cy_rslt_t result = sd_card_init_helper(self, args);

if (CY_RSLT_SUCCESS == result) {
Expand Down
1 change: 0 additions & 1 deletion tests/ports/psoc6/hw_ext/sdcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
board = os.uname().machine
if "CY8CPROTO-062-4343W" in board:
sdcard_config = {
"slot": 1,
"width": 4,
"cd": "P13_5",
"cmd": "P12_4",
Expand Down

0 comments on commit 308aff3

Please sign in to comment.