fix a bug in parsing SPI device

sipo
Ondřej Hruška 7 years ago
parent 05a568a27c
commit d3d8400245
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      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")) { if (streq(key, "device")) {
priv->periph_num = (uint8_t) avr_atoi(value); priv->periph_num = (uint8_t) avr_atoi(value);
} }
if (streq(key, "remap")) { else if (streq(key, "remap")) {
priv->remap = (uint8_t) avr_atoi(value); priv->remap = (uint8_t) avr_atoi(value);
} }
else if (streq(key, "prescaller")) { else if (streq(key, "prescaller")) {

Loading…
Cancel
Save