@@ -497,7 +497,7 @@ SFE_MAX1704X lipo(MAX1704X_MAX17048);
497
497
498
498
#ifdef COMPILE_BQ40Z50
499
499
#include " SparkFun_BQ40Z50_Battery_Manager_Arduino_Library.h" // Click here to get the library: http://librarymanager/All#SparkFun_BQ40Z50
500
- BQ40Z50 *bq40z50Battery;
500
+ BQ40Z50 *bq40z50Battery = nullptr ;
501
501
#endif // COMPILE_BQ40Z50
502
502
503
503
// RTK LED PWM (LEDC) properties
@@ -544,8 +544,8 @@ volatile bool forwardGnssDataToUsbSerial;
544
544
545
545
#define platformPrefix platformPrefixTable[productVariant] // Sets the prefix for broadcast names
546
546
547
- HardwareSerial *serialGNSS; // Don't instantiate until we know what gnssPlatform we're on
548
- HardwareSerial *serial2GNSS; // Don't instantiate until we know what gnssPlatform we're on
547
+ HardwareSerial *serialGNSS = nullptr ; // Don't instantiate until we know what gnssPlatform we're on
548
+ HardwareSerial *serial2GNSS = nullptr ; // Don't instantiate until we know what gnssPlatform we're on
549
549
550
550
#define SERIAL_SIZE_TX 512
551
551
uint8_t wBuffer[SERIAL_SIZE_TX]; // Buffer for writing from incoming SPP to F9P
@@ -619,7 +619,7 @@ const int beepTaskUpdatesHz = 20; // Update Beep 20 times a second. Shortest dur
619
619
// Buttons - Interrupt driven and debounce
620
620
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
621
621
#include < JC_Button.h> // http://librarymanager/All#JC_Button
622
- Button *userBtn;
622
+ Button *userBtn = nullptr ;
623
623
624
624
const uint8_t buttonCheckTaskPriority = 1 ; // 3 being the highest, and 0 being the lowest
625
625
const int buttonTaskStackSize = 2000 ;
0 commit comments