HAL_ChibiOS: fail on badly formed SPIDEV line

This commit is contained in:
Andrew Tridgell 2023-10-24 14:51:52 +11:00
parent 04c5c336b8
commit 6173726846
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ INCLUDE common.ld
devlist = [] devlist = []
for dev in self.spidev: for dev in self.spidev:
if len(dev) != 7: if len(dev) != 7:
print("Badly formed SPIDEV line %s" % dev) self.error("Badly formed SPIDEV line %s" % dev)
name = '"' + dev[0] + '"' name = '"' + dev[0] + '"'
bus = dev[1] bus = dev[1]
devid = dev[2] devid = dev[2]