Fixed memory overrun caused by buffer being too small.
Also fixed satellite count which got broken when I changed the GPS info flags to add more.
This commit is contained in:
parent
fbc4e380b3
commit
4ba9b3ec34
|
|
@ -254,7 +254,7 @@ typedef enum
|
||||||
vpGPSAltitude = 0x40,
|
vpGPSAltitude = 0x40,
|
||||||
vpGPSDirection = 0x80,
|
vpGPSDirection = 0x80,
|
||||||
vpGPSSatCount = 0x100,
|
vpGPSSatCount = 0x100,
|
||||||
vpGPSAll = 0xff,
|
vpGPSAll = 0x1ff,
|
||||||
}
|
}
|
||||||
vpGPSInfoFlags_t;
|
vpGPSInfoFlags_t;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -595,7 +595,7 @@ void vp_announceGPSInfo(vpGPSInfoFlags_t gpsInfoFlags)
|
||||||
addSilenceIfNeeded(flags);
|
addSilenceIfNeeded(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
char buffer[16] = "\0";
|
char buffer[17] = "\0";
|
||||||
|
|
||||||
if (gpsInfoFlags & vpGPSSpeed)
|
if (gpsInfoFlags & vpGPSSpeed)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue