mirror of https://github.com/Desuuuu/klipper.git
spi_software: Minor simplification to spi_software_prepare()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
260e4f54cf
commit
bcfd101867
|
@ -45,7 +45,7 @@ spi_software_oid_lookup(uint8_t oid)
|
|||
void
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue