Skip to content

spi_format() bug on KL43Z/KL27Z #2989

Closed
@DrSchottky

Description

@DrSchottky

Description

  • Type: Bug
  • Priority: Major

Bug

void spi_format(spi_t *obj, int bits, int mode, int slave) in spi_api.c always fails due to an incorrect check on bits arg.

if ((bits != 8) || (bits != 16)) { error("Only 8bits and 16bits SPI supported"); return; }

evaluates to true whatever the value of bits is.

Target
KL43Z KL27Z

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions