spi_software: Minor simplification to spi_software_prepare()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-05-22 11:40:30 -04:00
parent 260e4f54cf
commit bcfd101867
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ spi_software_oid_lookup(uint8_t oid)
void void
spi_software_prepare(struct spi_software *ss) spi_software_prepare(struct spi_software *ss)
{ {
gpio_out_write(ss->sclk, ss->mode < 2 ? 0 : 1); gpio_out_write(ss->sclk, ss->mode & 0x02);
} }
void void