Add dutyCycleOverride, update deps

This commit is contained in:
Sacha Weatherstone
2022-12-10 09:10:28 +10:00
parent 5156a67fc4
commit 1153276444
4 changed files with 410 additions and 429 deletions

View File

@@ -23,18 +23,18 @@
"homepage": "https://meshtastic.org",
"dependencies": {
"@emeraldpay/hashicon-react": "^0.5.2",
"@headlessui/react": "^1.7.4",
"@headlessui/react": "^1.7.5",
"@heroicons/react": "^2.0.13",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^2.9.10",
"@meshtastic/meshtasticjs": "^0.7.0",
"@meshtastic/meshtasticjs": "^0.7.1",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.8",
"base64-js": "^1.5.1",
"chart.js": "^4.0.1",
"chartjs-adapter-date-fns": "^2.0.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"class-validator": "^0.14.0",
"date-fns": "^2.29.3",
"geodesy": "^2.4.0",
"immer": "^9.0.16",
@@ -52,20 +52,20 @@
"react-map-gl": "^7.0.20",
"react-qrcode-logo": "^2.8.0",
"rfc4648": "^1.5.2",
"zustand": "4.1.4"
"zustand": "4.1.5"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.3",
"@types/chrome": "^0.0.203",
"@types/geodesy": "^2.2.3",
"@types/node": "^18.11.10",
"@types/node": "^18.11.12",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/w3c-web-serial": "^1.0.3",
"@types/web-bluetooth": "^0.0.16",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vitejs/plugin-react": "^2.2.0",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"@vitejs/plugin-react": "^3.0.0",
"autoprefixer": "^10.4.13",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
@@ -75,15 +75,15 @@
"eslint-plugin-react-hooks": "^4.6.0",
"gzipper": "^7.2.0",
"postcss": "^8.4.19",
"prettier": "^2.8.0",
"prettier-plugin-tailwindcss": "^0.2.0",
"prettier": "^2.8.1",
"prettier-plugin-tailwindcss": "^0.2.1",
"rollup-plugin-visualizer": "^5.8.3",
"tailwindcss": "^3.2.4",
"tar": "^6.1.12",
"tar": "^6.1.13",
"tslib": "^2.4.1",
"typescript": "^4.9.3",
"typescript": "^4.9.4",
"unimported": "^1.23.0",
"vite": "^3.2.4",
"vite": "^4.0.0",
"vite-plugin-environment": "^1.1.3"
}
}

798
pnpm-lock.yaml generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -167,6 +167,18 @@ export const LoRa = (): JSX.Element => {
error={errors.frequencyOffset?.message}
{...register("frequencyOffset", { valueAsNumber: true })}
/>
<Controller
name="overrideDutyCycle"
control={control}
render={({ field: { value, ...rest } }) => (
<Toggle
label="Override Duty Cycle"
description="Description"
checked={value}
{...rest}
/>
)}
/>
</FormSection>
<Input
label="Hop Limit"

View File

@@ -43,6 +43,9 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
@IsInt()
channelNum: number;
@IsBoolean()
overrideDutyCycle: boolean;
@IsArray()
ignoreIncoming: number[];
}