Skip to content

Commit

Permalink
AP_HAL_ChibiOS: do not run through SPI_RX and TX as well
Browse files Browse the repository at this point in the history
 we use MISO and MOSI name for SPI
  • Loading branch information
bugobliterator authored and peterbarker committed Oct 25, 2024
1 parent 61593e2 commit 9dca511
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,8 @@ def write_GPIO_config(self, f):
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
Expand Down

0 comments on commit 9dca511

Please sign in to comment.