Skip to content

SPI: SPI.end() before SPI.begin() causes the board to become unresponsive #552

Description

@JudjinGM

Issue:

Calling SPI.end() before SPI.begin() causes the board to become unresponsive.

Example:

#include <SPI.h>

void setup() {
  SPI.end();
}

void loop() {
}

Expected behavior

SPI.end() should return safely if SPI has not been initialized.

Hardware

  • Arduino UNO R4 Minima

Core version

  • ArduinoCore-renesas 1.6.0

A fix is proposed in #551 .

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