From a533813dae72d8eaf7e26fad568f8048b1b93603 Mon Sep 17 00:00:00 2001 From: Julius Jurgelenas Date: Sat, 14 Sep 2024 23:57:51 +0300 Subject: [PATCH] Fix true diversity receivers --- .../DeviceDescriptionsLoader/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/api/src/services/BinaryFlashingStrategy/DeviceDescriptionsLoader/index.ts b/src/api/src/services/BinaryFlashingStrategy/DeviceDescriptionsLoader/index.ts index 06e26022..5568c943 100644 --- a/src/api/src/services/BinaryFlashingStrategy/DeviceDescriptionsLoader/index.ts +++ b/src/api/src/services/BinaryFlashingStrategy/DeviceDescriptionsLoader/index.ts @@ -327,12 +327,17 @@ export default class DeviceDescriptionsLoader { targetUserDefinesFactory.build(UserDefineKey.REGULATORY_DOMAIN_ISM_2400) ); } - if (args.target.includes('dual')) { + // no support for LR1121 LBT yet. SPI commands are too slow + if (args.target.includes('tx_dual') || args.target.includes('rx_dual')) { userDefines.push( targetUserDefinesFactory.build(UserDefineKey.REGULATORY_DOMAIN_ISM_2400) ); } - if (args.target.includes('_900.') || args.target.includes('dual')) { + if ( + args.target.includes('_900.') || + args.target.includes('tx_dual') || + args.target.includes('rx_dual') + ) { userDefines.push( targetUserDefinesFactory.build(UserDefineKey.REGULATORY_DOMAIN_AU_915) );