Protect MAX7456 driver from unconfigured SPI
This commit is contained in:
parent
f57b3f3dc7
commit
f434f53c35
|
@ -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…
Reference in New Issue