mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
SPI in program I/O mode should always return false
This commit is contained in:
parent
62f0eb7ed3
commit
a3b1ad9e13
1 changed files with 2 additions and 2 deletions
|
@ -142,14 +142,14 @@ bool busBusy(const busDevice_t *busdev, bool *error)
|
||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
case BUSTYPE_SPI:
|
case BUSTYPE_SPI:
|
||||||
// No waiting on SPI
|
// No waiting on SPI
|
||||||
#ifdef USE_SPI_TRANSACTION
|
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#ifdef USE_I2C
|
#ifdef USE_I2C
|
||||||
case BUSTYPE_I2C:
|
case BUSTYPE_I2C:
|
||||||
return i2cBusBusy(busdev, error);
|
return i2cBusBusy(busdev, error);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue