1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

SPI in program I/O mode should always return false

This commit is contained in:
jflyper 2019-09-06 11:15:42 +09:00
parent 62f0eb7ed3
commit a3b1ad9e13

View file

@ -142,14 +142,14 @@ bool busBusy(const busDevice_t *busdev, bool *error)
#ifdef USE_SPI
case BUSTYPE_SPI:
// No waiting on SPI
#ifdef USE_SPI_TRANSACTION
return false;
#endif
#endif
#ifdef USE_I2C
case BUSTYPE_I2C:
return i2cBusBusy(busdev, error);
#endif
default:
return false;
}