Skip to content

Commit

Permalink
fix spi host num calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBoehm committed Aug 2, 2024
1 parent d1d4421 commit bab3a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SPIPortManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SPIPortManagerClass {
std::optional<uint8_t> allocatePort(std::string const& owner);
void freePort(std::string const& owner);

spi_host_device_t SPIhostNum(uint8_t spi_num) { return (spi_host_device_t)(spi_num + _offset_spi_num); }
spi_host_device_t SPIhostNum(uint8_t spi_num) { return (spi_host_device_t)(spi_num + _offset_spi_host); }

private:
// the amount of SPIs available on supported ESP32 chips
Expand Down

0 comments on commit bab3a8e

Please sign in to comment.