[NUCLEO_F302R8] SPI master corrected

pull/315/head
dbestm 2014-05-20 16:39:34 +02:00
parent af4522e2dc
commit 40cf8b8952
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void spi_format(spi_t *obj, int bits, int mode, int slave) {
if (slave == 0) {
obj->mode = SPI_Mode_Master;
obj->nss = SPI_NSS_Hard;
obj->nss = SPI_NSS_Soft;
} else {
obj->mode = SPI_Mode_Slave;
obj->nss = SPI_NSS_Hard;