mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-30 02:15:41 +00:00
nRF52 pre-sleep main serial check
Added another usage check for the main Serial. It could save some nerves in case the port is not in use by any means. Applied trunk fmt to the file.
This commit is contained in:
parent
0538a57cbd
commit
2e96bf642c
@ -282,8 +282,8 @@ void cpuDeepSleep(uint32_t msecToWake)
|
||||
#if SPI_INTERFACES_COUNT > 1
|
||||
SPI1.end();
|
||||
#endif
|
||||
// This may cause crashes as debug messages continue to flow.
|
||||
Serial.end();
|
||||
if (Serial) // Another check in case of disabled default serial, does nothing bad
|
||||
Serial.end(); // This may cause crashes as debug messages continue to flow.
|
||||
|
||||
// This causes troubles with waking up on nrf52 (on pro-micro in particular):
|
||||
// we have no Serial1 in use on nrf52, check Serial and GPS modules.
|
||||
|
Loading…
Reference in New Issue
Block a user