From df3b5a562aadd9b499030ae482db29d283d7ae7e Mon Sep 17 00:00:00 2001 From: Arnaud Taffanel Date: Tue, 13 Jun 2017 16:09:43 +0200 Subject: [PATCH] #234: Update deck SPI log speed to bellow 2MHz Required for flow deck and does not affect other decks (the low speed is used only at startup by the Loco positioning deck) --- src/deck/api/deck_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deck/api/deck_spi.c b/src/deck/api/deck_spi.c index 1acfb7f6e0..fea59c5de2 100644 --- a/src/deck/api/deck_spi.c +++ b/src/deck/api/deck_spi.c @@ -198,7 +198,7 @@ void spiConfigureSlow() SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB; SPI_InitStructure.SPI_CRCPolynomial = 0; // Not used - SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_32; //~2.7 MHz + SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_64; //~1.35 MHz SPI_Init(SPI, &SPI_InitStructure); }