We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18832bb commit 6b01143Copy full SHA for 6b01143
libraries/SPI/src/SPI.cpp
@@ -85,7 +85,7 @@ void SPIClass::setHwCs(bool use)
85
if(use && !_use_hw_ss) {
86
spiAttachSS(_spi, 0, _ss);
87
spiSSEnable(_spi);
88
- } else if(_use_hw_ss) {
+ } else if(!use && _use_hw_ss) {
89
spiSSDisable(_spi);
90
spiDetachSS(_spi, _ss);
91
}
0 commit comments