Don't close SPI FD when stopping radio

This commit is contained in:
Adam Novak 2022-02-17 16:05:44 +00:00
parent ccc83a5c6b
commit 8a7621a2f3

View File

@ -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;
}