Skip to content
Snippets Groups Projects
Commit 661b36df authored by Daniel Agar's avatar Daniel Agar Committed by Beat Küng
Browse files

px4nucleo_spi fix sign compare

parent 9b3b83f1
No related branches found
No related tags found
No related merge requests found
......@@ -230,7 +230,7 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
/* Making sure the other peripherals are not selected */
for (int cs = 0; arraySize(spi1selects_gpio) > 1 && cs < arraySize(spi1selects_gpio); cs++) {
for (size_t cs = 0; arraySize(spi1selects_gpio) > 1 && cs < arraySize(spi1selects_gpio); cs++) {
if (spi1selects_gpio[cs] != 0) {
stm32_gpiowrite(spi1selects_gpio[cs], 1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment