mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Protect MAX7456 driver from unconfigured SPI
This commit is contained in:
parent
f57b3f3dc7
commit
f434f53c35
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