parent
18832bb418
commit
6b0114366b
@ -85,7 +85,7 @@ void SPIClass::setHwCs(bool use)
|
|||||||
if(use && !_use_hw_ss) {
|
if(use && !_use_hw_ss) {
|
||||||
spiAttachSS(_spi, 0, _ss);
|
spiAttachSS(_spi, 0, _ss);
|
||||||
spiSSEnable(_spi);
|
spiSSEnable(_spi);
|
||||||
} else if(_use_hw_ss) {
|
} else if(!use && _use_hw_ss) {
|
||||||
spiSSDisable(_spi);
|
spiSSDisable(_spi);
|
||||||
spiDetachSS(_spi, _ss);
|
spiDetachSS(_spi, _ss);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user