Skip to content

Compile error when SPI_INTERFACES_COUNT 0 #3

@sslupsky

Description

@sslupsky

Subject of the issue

Compile generates an error when SPI_INTERFACES_COUNT 0

Your workbench

Custom variants.h has no SPI ports defined.

Steps to reproduce

Edit variants.h:

// SPI Interfaces
// --------------
#define SPI_INTERFACES_COUNT 0

Expected behaviour

Code compiles with SPI disabled

Actual behaviour

Sketch does not compile.

error: 'SPI' was not declared in this scope
ICM_20948_Status_e begin( uint8_t csPin, SPIClass &spiPort = SPI );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions