mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +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();
|
||||
|
||||
if (!max7456Config->csTag) {
|
||||
if (!max7456Config->csTag || !max7456Config->spiDevice) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue