From 0ef171a47b127262cae4f2578c078538653aea16 Mon Sep 17 00:00:00 2001 From: Julius Jurgelenas Date: Fri, 3 Sep 2021 09:39:47 +0300 Subject: [PATCH] Add HappyModel_ES24TX_Slim_Pro_2400_TX target. Closes #66 --- graphql.schema.json | 12 ++++++++++++ src/api/src/factories/TargetUserDefinesFactory.ts | 2 ++ .../src/library/FirmwareBuilder/Enum/DeviceTarget.ts | 2 ++ src/ui/components/DeviceTargetForm/index.tsx | 4 ++++ src/ui/gql/generated/types.ts | 2 ++ 5 files changed, 22 insertions(+) diff --git a/graphql.schema.json b/graphql.schema.json index a79bab3f7..8689be21f 100644 --- a/graphql.schema.json +++ b/graphql.schema.json @@ -505,6 +505,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "HappyModel_TX_ES900TX_via_UART", "description": null, diff --git a/src/api/src/factories/TargetUserDefinesFactory.ts b/src/api/src/factories/TargetUserDefinesFactory.ts index c1907242f..aa1d0aa9a 100644 --- a/src/api/src/factories/TargetUserDefinesFactory.ts +++ b/src/api/src/factories/TargetUserDefinesFactory.ts @@ -833,6 +833,8 @@ export default class TargetUserDefinesFactory { // Happymodel 2.4 Ghz [DeviceTarget.HappyModel_ES24TX_2400_TX_via_UART]: DIY_2400_TX_ESP32_SX1280, [DeviceTarget.HappyModel_ES24TX_2400_TX_via_WIFI]: DIY_2400_TX_ESP32_SX1280, + [DeviceTarget.HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART]: DIY_2400_TX_ESP32_SX1280, + [DeviceTarget.HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI]: DIY_2400_TX_ESP32_SX1280, [DeviceTarget.HappyModel_EP_2400_RX_via_UART]: DIY_2400_RX_ESP8285_SX1280_NO_DIVERSITY, [DeviceTarget.HappyModel_EP_2400_RX_via_BetaflightPassthrough]: DIY_2400_RX_ESP8285_SX1280_NO_DIVERSITY, [DeviceTarget.HappyModel_EP_2400_RX_via_WIFI]: DIY_2400_RX_ESP8285_SX1280_NO_DIVERSITY, diff --git a/src/api/src/library/FirmwareBuilder/Enum/DeviceTarget.ts b/src/api/src/library/FirmwareBuilder/Enum/DeviceTarget.ts index 8e64aba64..58bb9c113 100644 --- a/src/api/src/library/FirmwareBuilder/Enum/DeviceTarget.ts +++ b/src/api/src/library/FirmwareBuilder/Enum/DeviceTarget.ts @@ -32,6 +32,8 @@ enum DeviceTarget { Jumper_RX_R900MINI_via_BetaflightPassthrough = 'Jumper_RX_R900MINI_via_BetaflightPassthrough', HappyModel_ES24TX_2400_TX_via_UART = 'HappyModel_ES24TX_2400_TX_via_UART', HappyModel_ES24TX_2400_TX_via_WIFI = 'HappyModel_ES24TX_2400_TX_via_WIFI', + HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART = 'HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART', + HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI = 'HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI', HappyModel_TX_ES900TX_via_UART = 'HappyModel_TX_ES900TX_via_UART', HappyModel_TX_ES900TX_via_WIFI = 'HappyModel_TX_ES900TX_via_WIFI', HappyModel_RX_ES900RX_via_BetaflightPassthrough = 'HappyModel_RX_ES900RX_via_BetaflightPassthrough', diff --git a/src/ui/components/DeviceTargetForm/index.tsx b/src/ui/components/DeviceTargetForm/index.tsx index 69dd42a91..c10492f52 100644 --- a/src/ui/components/DeviceTargetForm/index.tsx +++ b/src/ui/components/DeviceTargetForm/index.tsx @@ -73,6 +73,10 @@ const deviceTargetToCategory = (deviceTarget: DeviceTarget): string => { // Happymodel 2.4 GHz [DeviceTarget.HappyModel_ES24TX_2400_TX_via_UART]: 'Happymodel 2.4 GHz', [DeviceTarget.HappyModel_ES24TX_2400_TX_via_WIFI]: 'Happymodel 2.4 GHz', + [DeviceTarget.HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART]: + 'Happymodel 2.4 GHz', + [DeviceTarget.HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI]: + 'Happymodel 2.4 GHz', [DeviceTarget.HappyModel_EP_2400_RX_via_UART]: 'Happymodel 2.4 GHz', [DeviceTarget.HappyModel_EP_2400_RX_via_BetaflightPassthrough]: 'Happymodel 2.4 GHz', diff --git a/src/ui/gql/generated/types.ts b/src/ui/gql/generated/types.ts index f8e6de346..96cb35094 100644 --- a/src/ui/gql/generated/types.ts +++ b/src/ui/gql/generated/types.ts @@ -76,6 +76,8 @@ export enum DeviceTarget { Jumper_RX_R900MINI_via_BetaflightPassthrough = 'Jumper_RX_R900MINI_via_BetaflightPassthrough', HappyModel_ES24TX_2400_TX_via_UART = 'HappyModel_ES24TX_2400_TX_via_UART', HappyModel_ES24TX_2400_TX_via_WIFI = 'HappyModel_ES24TX_2400_TX_via_WIFI', + HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART = 'HappyModel_ES24TX_Slim_Pro_2400_TX_via_UART', + HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI = 'HappyModel_ES24TX_Slim_Pro_2400_TX_via_WIFI', HappyModel_TX_ES900TX_via_UART = 'HappyModel_TX_ES900TX_via_UART', HappyModel_TX_ES900TX_via_WIFI = 'HappyModel_TX_ES900TX_via_WIFI', HappyModel_RX_ES900RX_via_BetaflightPassthrough = 'HappyModel_RX_ES900RX_via_BetaflightPassthrough',