From 868af9dd6b7232cb9d5e2073906287728da0baed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Thu, 3 Feb 2022 14:22:46 +0100 Subject: [PATCH] Get rid of log clutter during oled screen animation (#1182) --- src/GPSStatus.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GPSStatus.h b/src/GPSStatus.h index 9586c9529..bcd371eb8 100644 --- a/src/GPSStatus.h +++ b/src/GPSStatus.h @@ -63,7 +63,9 @@ class GPSStatus : public Status int32_t getLatitude() const { if (radioConfig.preferences.fixed_position){ +#if GPS_EXTRAVERBOSE DEBUG_MSG("WARNING: Using fixed latitude\n"); +#endif NodeInfo *node = nodeDB.getNode(nodeDB.getNodeNum()); return node->position.latitude_i; } else { @@ -73,7 +75,9 @@ class GPSStatus : public Status int32_t getLongitude() const { if (radioConfig.preferences.fixed_position){ +#if GPS_EXTRAVERBOSE DEBUG_MSG("WARNING: Using fixed longitude\n"); +#endif NodeInfo *node = nodeDB.getNode(nodeDB.getNodeNum()); return node->position.longitude_i; } else { @@ -83,7 +87,9 @@ class GPSStatus : public Status int32_t getAltitude() const { if (radioConfig.preferences.fixed_position){ +#if GPS_EXTRAVERBOSE DEBUG_MSG("WARNING: Using fixed altitude\n"); +#endif NodeInfo *node = nodeDB.getNode(nodeDB.getNodeNum()); return node->position.altitude; } else {