Skip to content

Commit

Permalink
Merge pull request #319 from ExpressLRS/add-namimnorc-2400-diversity-rx
Browse files Browse the repository at this point in the history
Add NamimnoRC Diversity RX target support
  • Loading branch information
jurgelenas authored Apr 8, 2022
2 parents a53dc1e + 030820f commit a12928b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions devices/namimnorc-2400.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,41 @@
"name": "NamimnoRC_FLASH_2400_ESP_RX_via_WIFI"
}
],
"userDefines": [
"REGULATORY_DOMAIN_ISM_2400",
"REGULATORY_DOMAIN_EU_CE_2400",
"BINDING_PHRASE",
"HYBRID_SWITCHES_8",
"ENABLE_TELEMETRY",
"LOCK_ON_FIRST_CONNECTION",
"USE_500HZ",
"AUTO_WIFI_ON_BOOT",
"AUTO_WIFI_ON_INTERVAL",
"HOME_WIFI_SSID",
"HOME_WIFI_PASSWORD",
"RCVR_UART_BAUD",
"RCVR_INVERT_TX"
],
"wikiUrl": "https://www.expresslrs.org/{version}/quick-start/receivers/rx-flash2400/",
"deviceType": "ExpressLRS",
"aliases": []
},{
"category": "NamimnoRC FLASH 2.4 GHz",
"name": "NamimnoRC FLASH 2400 ESP Diversity RX",
"targets": [
{
"flashingMethod": "UART",
"name": "NamimnoRC_FLASH_2400_ESP_RX_PA_via_UART"
},
{
"flashingMethod": "BetaflightPassthrough",
"name": "NamimnoRC_FLASH_2400_ESP_RX_PA_via_BetaflightPassthrough"
},
{
"flashingMethod": "WIFI",
"name": "NamimnoRC_FLASH_2400_ESP_RX_PA_via_WIFI"
}
],
"userDefines": [
"REGULATORY_DOMAIN_ISM_2400",
"REGULATORY_DOMAIN_EU_CE_2400",
Expand Down
3 changes: 3 additions & 0 deletions src/api/src/factories/TargetUserDefinesFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export default class TargetUserDefinesFactory {
case UserDefineKey.UNLOCK_HIGHER_POWER:
return UserDefine.Boolean(UserDefineKey.UNLOCK_HIGHER_POWER, true);
case UserDefineKey.USE_DIVERSITY:
if (target.startsWith('NamimnoRC_FLASH_2400_ESP_RX_PA')) {
return UserDefine.Boolean(UserDefineKey.USE_DIVERSITY, true);
}
return UserDefine.Boolean(UserDefineKey.USE_DIVERSITY);
case UserDefineKey.NO_SYNC_ON_ARM:
return UserDefine.Boolean(UserDefineKey.NO_SYNC_ON_ARM);
Expand Down

0 comments on commit a12928b

Please sign in to comment.