From 5c56456e3f7597da32ca76d1f269b8de38d04f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nidecki?= Date: Fri, 19 Feb 2021 01:57:56 +0100 Subject: [PATCH] Fix in reading fixed position from preferences --- src/TTGO_T-Beam_LoRa_APRS.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index 21aa45e..5f96386 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -427,7 +427,7 @@ void setup(){ preferences.putBool(PREF_APRS_LATITUDE_PRESET_INIT, true); preferences.putString(PREF_APRS_LATITUDE_PRESET, LATIDUDE_PRESET); } - aprsLatPreset = preferences.getString(LATIDUDE_PRESET); + aprsLatPreset = preferences.getString(PREF_APRS_LATITUDE_PRESET); if (!preferences.getBool(PREF_APRS_LONGITUDE_PRESET_INIT)){ preferences.putBool(PREF_APRS_LONGITUDE_PRESET_INIT, true);