Skip to content

Commit

Permalink
Merge pull request #44 from rtlopez/baro-fix
Browse files Browse the repository at this point in the history
rp2040 build fix
  • Loading branch information
rtlopez authored Jul 26, 2023
2 parents 2f57656 + 902c447 commit 247db24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Espfc/src/Device/BusSPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BusSPI: public BusDevice
private:
void transfer(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *in, uint8_t *out, uint32_t speed)
{
_dev.beginTransaction(SPISettings(speed, SPI_MSBFIRST, SPI_MODE0));
_dev.beginTransaction(SPISettings(speed, MSBFIRST, SPI_MODE0));
digitalWrite(devAddr, LOW);
#if defined (ARCH_RP2040)
_dev.transfer(regAddr);
Expand Down

0 comments on commit 247db24

Please sign in to comment.