mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
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…
x
Reference in New Issue
Block a user