mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 02:52:05 +00:00
Merge pull request #403 from r51n/anz
Add Australia/New Zealand channels and build target
This commit is contained in:
commit
036a1991b8
@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
source bin/version.sh
|
source bin/version.sh
|
||||||
|
|
||||||
COUNTRIES="US EU433 EU865 CN JP"
|
COUNTRIES="US EU433 EU865 CN JP ANZ"
|
||||||
#COUNTRIES=US
|
#COUNTRIES=US
|
||||||
#COUNTRIES=CN
|
#COUNTRIES=CN
|
||||||
|
|
||||||
|
@ -36,6 +36,11 @@
|
|||||||
#define CH_SPACING_TW 0.2
|
#define CH_SPACING_TW 0.2
|
||||||
#define NUM_CHANNELS_TW 10
|
#define NUM_CHANNELS_TW 10
|
||||||
|
|
||||||
|
// AU/NZ channel settings 915-928MHz
|
||||||
|
#define CH0_ANZ 916.0f // MHz - avoid overcrowding on 915.0
|
||||||
|
#define CH_SPACING_ANZ 0.5f
|
||||||
|
#define NUM_CHANNELS_ANZ 20
|
||||||
|
|
||||||
// FIXME add defs for other regions and use them here
|
// FIXME add defs for other regions and use them here
|
||||||
#ifdef HW_VERSION_US
|
#ifdef HW_VERSION_US
|
||||||
#define CH0 CH0_US
|
#define CH0 CH0_US
|
||||||
@ -63,6 +68,11 @@
|
|||||||
#define CH0 CH0_TW
|
#define CH0 CH0_TW
|
||||||
#define CH_SPACING CH_SPACING_TW
|
#define CH_SPACING CH_SPACING_TW
|
||||||
#define NUM_CHANNELS NUM_CHANNELS_TW
|
#define NUM_CHANNELS NUM_CHANNELS_TW
|
||||||
|
#elif defined(HW_VERSION_ANZ)
|
||||||
|
// Australia and NZ
|
||||||
|
#define CH0 CH0_ANZ
|
||||||
|
#define CH_SPACING CH_SPACING_ANZ
|
||||||
|
#define NUM_CHANNELS NUM_CHANNELS_ANZ
|
||||||
#else
|
#else
|
||||||
// HW version not set - assume US
|
// HW version not set - assume US
|
||||||
#define CH0 CH0_US
|
#define CH0 CH0_US
|
||||||
|
Loading…
Reference in New Issue
Block a user