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")) {