Skip to content

Commit 92284df

Browse files
authoredOct 23, 2021
Merge pull request #96 from ExpressLRS/support-removal-of-ism-2400-user-define
Support removal of ISM_2400 user define
2 parents 15f0059 + ad45de7 commit 92284df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/ui/views/ConfiguratorView/UserDefinesValidator.ts

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ export default class UserDefinesValidator {
1414
UserDefineKey.REGULATORY_DOMAIN_ISM_2400,
1515
];
1616

17+
// Support case when there are no Regulatory Domain user defines at all. All 2.4 Ghz hardware
18+
const regulatoryDomainsValidationRequired =
19+
data.filter(({ key }) => regulatoryDomainKeys.includes(key)).length > 0;
20+
if (!regulatoryDomainsValidationRequired) {
21+
return results;
22+
}
23+
1724
const regulatoryDefines = data.filter(
1825
({ key, enabled }) => regulatoryDomainKeys.includes(key) && enabled
1926
);

0 commit comments

Comments
 (0)
Please sign in to comment.