Protect MAX7456 driver from unconfigured SPI

This commit is contained in:
jflyper 2018-11-16 16:42:46 +09:00
parent f57b3f3dc7
commit f434f53c35
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}