From 22ceb08b49b55ab2da408982a2aa062a7796e262 Mon Sep 17 00:00:00 2001 From: UncleRus Date: Sun, 13 Mar 2016 02:25:15 +0500 Subject: [PATCH] Tabs to spaces. Again. --- core/include/esp/spi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/esp/spi.h b/core/include/esp/spi.h index ec86e9d..0b8e053 100644 --- a/core/include/esp/spi.h +++ b/core/include/esp/spi.h @@ -123,8 +123,8 @@ void spi_set_frequency_div(uint8_t bus, uint32_t divider); inline uint32_t spi_get_frequency_hz(uint8_t bus) { return APB_CLK_FREQ / - (FIELD2VAL(SPI_CLOCK_DIV_PRE, SPI(bus).CLOCK) + 1) / - (FIELD2VAL(SPI_CLOCK_COUNT_NUM, SPI(bus).CLOCK) + 1); + (FIELD2VAL(SPI_CLOCK_DIV_PRE, SPI(bus).CLOCK) + 1) / + (FIELD2VAL(SPI_CLOCK_COUNT_NUM, SPI(bus).CLOCK) + 1); } /**