mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-14 09:02:14 +00:00
Move packet scratch declaration to header
This commit is contained in:
parent
4ff343b20f
commit
c91e306659
@ -28,7 +28,6 @@ GPS *gps;
|
|||||||
/// Multiple GPS instances might use the same serial port (in sequence), but we can
|
/// Multiple GPS instances might use the same serial port (in sequence), but we can
|
||||||
/// only init that port once.
|
/// only init that port once.
|
||||||
static bool didSerialInit;
|
static bool didSerialInit;
|
||||||
uint8_t UBXscratch[250] = {0};
|
|
||||||
|
|
||||||
struct uBloxGnssModelInfo info;
|
struct uBloxGnssModelInfo info;
|
||||||
uint8_t uBloxProtocolVersion;
|
uint8_t uBloxProtocolVersion;
|
||||||
|
@ -106,6 +106,9 @@ class GPS : private concurrency::OSThread
|
|||||||
// Create a ublox packet for editing in memory
|
// Create a ublox packet for editing in memory
|
||||||
uint8_t makeUBXPacket(uint8_t class_id, uint8_t msg_id, uint8_t payload_size, const uint8_t *msg);
|
uint8_t makeUBXPacket(uint8_t class_id, uint8_t msg_id, uint8_t payload_size, const uint8_t *msg);
|
||||||
|
|
||||||
|
// scratch space for creating ublox packets
|
||||||
|
uint8_t UBXscratch[250] = {0};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Do gps chipset specific init, return true for success
|
/// Do gps chipset specific init, return true for success
|
||||||
virtual bool setupGPS();
|
virtual bool setupGPS();
|
||||||
@ -146,9 +149,6 @@ class GPS : private concurrency::OSThread
|
|||||||
|
|
||||||
void setNumSatellites(uint8_t n);
|
void setNumSatellites(uint8_t n);
|
||||||
|
|
||||||
// scratch space for creating ublox packets
|
|
||||||
uint8_t UBXscratch[250];
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Prepare the GPS for the cpu entering deep or light sleep, expect to be gone for at least 100s of msecs
|
/// Prepare the GPS for the cpu entering deep or light sleep, expect to be gone for at least 100s of msecs
|
||||||
/// always returns 0 to indicate okay to sleep
|
/// always returns 0 to indicate okay to sleep
|
||||||
|
Loading…
Reference in New Issue
Block a user