Skip to content

Chip select should be allowed to be null #7968

@dearmash

Description

@dearmash

mp_arg_validate_type(args[ARG_chip_select].u_obj, &digitalio_digitalinout_type, MP_QSTR_chip_select);

This line should be wrapped in the if (args[ARG_chip_select].u_obj != MP_OBJ_NULL) { check below. Or at least have its own independent check.

As of right now, constructing this without a chip select specified causes an error to be thrown.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions