Allow default overrideFrequency (#838)

* Allow overrideFrequency == 0
* Fix typo

---------

Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
Jeremy Gallant
2025-09-10 20:33:32 +02:00
committed by GitHub
co-authored by philon-
parent aababb8075
commit 1214b6ecf6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export const LoRaValidationSchema = z.object({
sx126xRxBoostedGain: z.boolean(),
overrideFrequency: z.coerce
.number()
.refine((val) => val >= 410 && val <= 930, {
.refine((val) => val === 0 || (val >= 410 && val <= 930), {
message: "formValidation.invalidOverrideFreq.number",
}),
ignoreIncoming: z.coerce.number().array(),