Skip to content

Commit

Permalink
DAUTO_WIFI_ON_INTERVAL is now mandatory for WiFI capable *_TX targets…
Browse files Browse the repository at this point in the history
… on master / 1.1. Closes #55
  • Loading branch information
jurgelenas committed Sep 3, 2021
1 parent cad374e commit 38dc5ec
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api/src/factories/TargetUserDefinesFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.BLE_HID_JOYSTICK),
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];
Expand Down Expand Up @@ -106,6 +107,7 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.BLE_HID_JOYSTICK),
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];
Expand Down Expand Up @@ -380,6 +382,7 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.BLE_HID_JOYSTICK),
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];
Expand Down Expand Up @@ -412,6 +415,7 @@ export default class TargetUserDefinesFactory {
// compat
UserDefine.Boolean(UserDefineKey.UART_INVERTED, true),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];
Expand Down Expand Up @@ -508,6 +512,10 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.UART_INVERTED, true),
// other
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];

const DIY_900_TX_TTGO_V2_SX127x: UserDefine[] = [
Expand All @@ -534,6 +542,10 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// compat
UserDefine.Boolean(UserDefineKey.UART_INVERTED, true),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];

const DIY_900_TX_ESP32_SX127x: UserDefine[] = [
Expand Down Expand Up @@ -563,6 +575,7 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.BLE_HID_JOYSTICK),
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];
Expand Down Expand Up @@ -625,6 +638,7 @@ export default class TargetUserDefinesFactory {
UserDefine.Boolean(UserDefineKey.UART_INVERTED, true),
UserDefine.Boolean(UserDefineKey.USE_DYNAMIC_POWER),
// network
UserDefine.Text(UserDefineKey.AUTO_WIFI_ON_INTERVAL, '45', true),
UserDefine.Text(UserDefineKey.HOME_WIFI_SSID),
UserDefine.Text(UserDefineKey.HOME_WIFI_PASSWORD),
];
Expand Down

0 comments on commit 38dc5ec

Please sign in to comment.