Skip to content

SPI.transfer(buffer, size) is missing #1623

Closed
@PaulStoffregen

Description

@PaulStoffregen

ESP32's SPI library is missing overloaded function SPI.transfer(buffer, size).

Here is Arduino's documentation.

https://www.arduino.cc/en/Reference/SPITransfer

Arduino sketches and libraries using this function will not compile for ESP32. This is a very easy fix, just add this line in SPI.h

  void transfer(uint8_t * data, uint32_t size) { transferBytes(data, data, size); }

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