AP_HAL_ChibiOS: do not run through SPI_RX and TX as well

we use MISO and MOSI name for SPI
This commit is contained in:
bugobliterator 2024-10-14 16:40:22 +08:00 committed by Peter Barker
parent 61593e2b36
commit 9dca511e7e
1 changed files with 2 additions and 0 deletions

View File

@ -2404,6 +2404,8 @@ INCLUDE common.ld
gpioset = set()
for label in self.bylabel:
p = self.bylabel[label]
if 'SPI' in label and ('RX' in label or 'TX' in label):
continue
gpio = p.extra_value('GPIO', type=int)
if gpio is None:
continue