Segemented config works for me (TM)

Small GPS Fix that cropped up while testing included.
This commit is contained in:
Thomas Göttgens
2022-05-21 22:38:33 +02:00
parent 33938f73a6
commit 53e9f4df46
27 changed files with 146 additions and 119 deletions

View File

@@ -62,7 +62,7 @@ class GPSStatus : public Status
int32_t getLatitude() const
{
if (config.payloadVariant.position.fixed_position) {
if (config.position.fixed_position) {
#ifdef GPS_EXTRAVERBOSE
DEBUG_MSG("WARNING: Using fixed latitude\n");
#endif
@@ -75,7 +75,7 @@ class GPSStatus : public Status
int32_t getLongitude() const
{
if (config.payloadVariant.position.fixed_position) {
if (config.position.fixed_position) {
#ifdef GPS_EXTRAVERBOSE
DEBUG_MSG("WARNING: Using fixed longitude\n");
#endif
@@ -88,7 +88,7 @@ class GPSStatus : public Status
int32_t getAltitude() const
{
if (config.payloadVariant.position.fixed_position) {
if (config.position.fixed_position) {
#ifdef GPS_EXTRAVERBOSE
DEBUG_MSG("WARNING: Using fixed altitude\n");
#endif