Browse Source

tests/periph_spi: print int variables instead of spi_*_t variables

pr/spi.typo
kYc0o 7 years ago
parent
commit
f6303d5f53
  1. 4
      tests/periph_spi/main.c

4
tests/periph_spi/main.c

@ -229,7 +229,7 @@ int cmd_init_master(int argc, char **argv)
gpio_set(spi_cs);
spi_master = 1;
printf("SPI_%i successfully initialized as master, cs: GPIO_PIN(%i, %i), mode: %i, speed: %i\n",
spi_dev, port, pin, spi_mode, spi_speed);
spi_dev, port, pin, spi_mode_int, spi_speed_int);
return 0;
}
@ -256,7 +256,7 @@ int cmd_init_slave(int argc, char **argv)
}
spi_master = 0;
printf("SPI_%i successfully initialized as slave, cs: GPIO_PIN(%i, %i), mode: %i\n",
spi_dev, port, pin, spi_mode);
spi_dev, port, pin, spi_mode_int);
return 0;
}

Loading…
Cancel
Save