Skip to content

Commit 2b413bd

Browse files
committed
SSI and BISS encoders releasing exclusive SPI port properly
1 parent 9051c73 commit 2b413bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firmware/FFBoard/UserExtensions/Src/EncoderBissC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ bool EncoderBissC::isCreatable(){
124124
EncoderBissC::~EncoderBissC() {
125125
setPos(0);
126126
EncoderBissC::inUse = false;
127-
this->spiPort.takeExclusive(true);
127+
this->spiPort.takeExclusive(false);
128128
}
129129

130130
void EncoderBissC::spiRxCompleted(SPIPort* port) {

Firmware/FFBoard/UserExtensions/Src/EncoderSSI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ EncoderSSI::EncoderSSI() :
3434
EncoderSSI::~EncoderSSI() {
3535
setPos(0);
3636
EncoderSSI::inUse = false;
37-
this->spiPort.takeExclusive(true);
37+
this->spiPort.takeExclusive(false);
3838
}
3939

4040

0 commit comments

Comments
 (0)