From 5c97c24b4834d714e9aff02a7d41945a396a0750 Mon Sep 17 00:00:00 2001 From: jLynx Date: Thu, 24 Mar 2022 20:36:39 +1300 Subject: [PATCH] Added NZ to APRS --- firmware/application/apps/ui_aprs_rx.cpp | 8 ++++---- firmware/application/apps/ui_aprs_rx.hpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/firmware/application/apps/ui_aprs_rx.cpp b/firmware/application/apps/ui_aprs_rx.cpp index 6732e626..1bcfd273 100644 --- a/firmware/application/apps/ui_aprs_rx.cpp +++ b/firmware/application/apps/ui_aprs_rx.cpp @@ -108,12 +108,12 @@ APRSRxView::APRSRxView(NavigationView& nav, Rect parent_rect) : View(parent_rect options_region.on_change = [this](size_t, int32_t i) { if (i == 0){ field_frequency.set_value(144390000); - } - if(i == 1){ + } else if(i == 1){ field_frequency.set_value(144800000); - } - if(i == 2){ + } else if(i == 2){ field_frequency.set_value(145175000); + } else if(i == 3){ + field_frequency.set_value(144575000); } }; diff --git a/firmware/application/apps/ui_aprs_rx.hpp b/firmware/application/apps/ui_aprs_rx.hpp index e392e62f..216e96a3 100644 --- a/firmware/application/apps/ui_aprs_rx.hpp +++ b/firmware/application/apps/ui_aprs_rx.hpp @@ -217,7 +217,8 @@ private: { { "NA ", 0 }, { "EUR", 1 }, - { "AUS", 2 } + { "AUS", 2 }, + { "NZ ", 3 } } };