From d3d8400245ac552525e838345fb6d5ec3e2647f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 6 Jan 2018 17:34:33 +0100 Subject: [PATCH] fix a bug in parsing SPI device --- units/spi/unit_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/spi/unit_spi.c b/units/spi/unit_spi.c index df893b8..fc20030 100644 --- a/units/spi/unit_spi.c +++ b/units/spi/unit_spi.c @@ -86,7 +86,7 @@ static error_t USPI_loadIni(Unit *unit, const char *key, const char *value) if (streq(key, "device")) { priv->periph_num = (uint8_t) avr_atoi(value); } - if (streq(key, "remap")) { + else if (streq(key, "remap")) { priv->remap = (uint8_t) avr_atoi(value); } else if (streq(key, "prescaller")) {