mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-07-06 04:14:53 -04:00
Don't close SPI FD when stopping radio
This commit is contained in:
parent
ccc83a5c6b
commit
8a7621a2f3
1 changed files with 1 additions and 4 deletions
5
LoRa.cpp
5
LoRa.cpp
|
@ -186,10 +186,7 @@ void LoRaClass::end()
|
|||
// stop SPI
|
||||
SPI.end();
|
||||
#elif LIBRARY_TYPE == LIBRARY_C
|
||||
if (_fd >= 0) {
|
||||
close(_fd);
|
||||
_fd = -1;
|
||||
}
|
||||
// Don't do anything. We need to keep things open for restart.
|
||||
#endif
|
||||
_spiBegun = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue