From e5b3ea1bed74f36a50ba055167edac515e869b2e Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Thu, 15 Jun 2023 08:21:38 +0200 Subject: [PATCH] Set default opmode to M17 in cps_getDefaultChannel() when compiling for Module17 --- openrtx/src/core/cps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openrtx/src/core/cps.c b/openrtx/src/core/cps.c index 64574122..d0f2124b 100644 --- a/openrtx/src/core/cps.c +++ b/openrtx/src/core/cps.c @@ -24,7 +24,12 @@ channel_t cps_getDefaultChannel() { channel_t channel; + + #ifdef PLATFORM_MOD17 + channel.mode = OPMODE_M17; + #else channel.mode = OPMODE_FM; + #endif channel.bandwidth = BW_25; channel.power = 100; // 1W, P = 10dBm + n*0.2dBm, we store n