File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
src/api/src/services/BinaryFlashingStrategy/DeviceDescriptionsLoader Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -327,11 +327,30 @@ export default class DeviceDescriptionsLoader {
327327 targetUserDefinesFactory . build ( UserDefineKey . REGULATORY_DOMAIN_ISM_2400 )
328328 ) ;
329329 }
330- // no support for LR1121 LBT yet. SPI commands are too slow
330+
331331 if ( args . target . includes ( 'tx_dual' ) || args . target . includes ( 'rx_dual' ) ) {
332332 userDefines . push (
333333 targetUserDefinesFactory . build ( UserDefineKey . REGULATORY_DOMAIN_ISM_2400 )
334334 ) ;
335+ /*
336+ LBT support for dual-band hardware was added only after 3.5.6.
337+
338+ So with our best effort, we are trying to determine if lbt is actually
339+ supported by the firmware. We can do that accurately with git tag
340+ semver comparison. For everything else, we will assume that it is
341+ supported.
342+ */
343+ if (
344+ ( args . source === FirmwareSource . GitTag &&
345+ semver . gt ( args . gitTag , '3.5.6' ) ) ||
346+ args . source !== FirmwareSource . GitTag
347+ ) {
348+ userDefines . push (
349+ targetUserDefinesFactory . build (
350+ UserDefineKey . REGULATORY_DOMAIN_EU_CE_2400
351+ )
352+ ) ;
353+ }
335354 }
336355 if (
337356 args . target . includes ( '_900.' ) ||
You can’t perform that action at this time.
0 commit comments