From 55cb0c52eed3dae658b3b4414c50bb3df2ec58a9 Mon Sep 17 00:00:00 2001 From: comgram Date: Mon, 21 Sep 2020 16:10:20 +0900 Subject: [PATCH] Add Korean Frequency --- bin/build-all.sh | 2 +- src/mesh/MeshRadio.h | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bin/build-all.sh b/bin/build-all.sh index 2f52a47f..63dfc01c 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -4,7 +4,7 @@ set -e source bin/version.sh -COUNTRIES="US EU433 EU865 CN JP ANZ" +COUNTRIES="US EU433 EU865 CN JP ANZ KR" #COUNTRIES=US #COUNTRIES=CN diff --git a/src/mesh/MeshRadio.h b/src/mesh/MeshRadio.h index 14b649da..070c7c9a 100644 --- a/src/mesh/MeshRadio.h +++ b/src/mesh/MeshRadio.h @@ -41,6 +41,12 @@ #define CH_SPACING_ANZ 0.5f #define NUM_CHANNELS_ANZ 20 +// KR channel settings (KR920-923) +// Start from TTN download channel freq. (921.9f is for download, others are for uplink) +#define CH0_KR 921.9f // MHz +#define CH_SPACING_KR 0.2f +#define NUM_CHANNELS_KR 8 + // FIXME add defs for other regions and use them here #ifdef HW_VERSION_US #define CH0 CH0_US @@ -73,9 +79,14 @@ #define CH0 CH0_ANZ #define CH_SPACING CH_SPACING_ANZ #define NUM_CHANNELS NUM_CHANNELS_ANZ +#elif defined(HW_VERSION_KR) +// Republic of Korea +#define CH0 CH0_KR +#define CH_SPACING CH_SPACING_KR +#define NUM_CHANNELS NUM_CHANNELS_KR #else // HW version not set - assume US #define CH0 CH0_US #define CH_SPACING CH_SPACING_US #define NUM_CHANNELS NUM_CHANNELS_US -#endif +#endif \ No newline at end of file