mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 09:43:03 +00:00
fix crash during shutdown (#2859)
* fix null pointer access * ptr initialize
This commit is contained in:
@@ -20,7 +20,7 @@ HardwareSerial *GPS::_serial_gps = &Serial1;
|
||||
HardwareSerial *GPS::_serial_gps = NULL;
|
||||
#endif
|
||||
|
||||
GPS *gps;
|
||||
GPS *gps = nullptr;
|
||||
|
||||
/// Multiple GPS instances might use the same serial port (in sequence), but we can
|
||||
/// only init that port once.
|
||||
|
||||
Reference in New Issue
Block a user