mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Merge pull request #7094 from jflyper/bfdev-protect-max7456-driver-from-unconfigured-spi
[MAX7456] Protect MAX7456 driver from unconfigured SPI
This commit is contained in:
commit
c3e1e6a900
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ bool max7456Init(const max7456Config_t *max7456Config, const vcdProfile_t *pVcdP
|
||||||
{
|
{
|
||||||
max7456HardwareReset();
|
max7456HardwareReset();
|
||||||
|
|
||||||
if (!max7456Config->csTag) {
|
if (!max7456Config->csTag || !max7456Config->spiDevice) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue