mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-08-06 13:34:29 -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
|
// stop SPI
|
||||||
SPI.end();
|
SPI.end();
|
||||||
#elif LIBRARY_TYPE == LIBRARY_C
|
#elif LIBRARY_TYPE == LIBRARY_C
|
||||||
if (_fd >= 0) {
|
// Don't do anything. We need to keep things open for restart.
|
||||||
close(_fd);
|
|
||||||
_fd = -1;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
_spiBegun = false;
|
_spiBegun = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue