Skip to content

Allow default overrideFrequency#838

Merged
philon- merged 2 commits into
meshtastic:mainfrom
philon-:fix-allow-default-frequency
Sep 10, 2025
Merged

Allow default overrideFrequency#838
philon- merged 2 commits into
meshtastic:mainfrom
philon-:fix-allow-default-frequency

Conversation

@philon-

@philon- philon- commented Sep 10, 2025

Copy link
Copy Markdown
Contributor

Description

Recent changes to overrideFrequency introduced an issue where 0 was not a valid input. This PR addresses that.

Related Issues

Changes Made

  • Allow overrideFrequency == 0

Testing Done

Tested locally, behaves as expected

Screenshots (if applicable)

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

Copilot AI review requested due to automatic review settings September 10, 2025 16:09
@vercel

vercel Bot commented Sep 10, 2025

Copy link
Copy Markdown

@philon- is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

@philon- philon- assigned danditomaso and unassigned danditomaso Sep 10, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a validation issue with the overrideFrequency field by allowing 0 as a valid input to use the default frequency setting.

  • Updated validation logic to accept 0 as a special case alongside the existing 410-930 MHz range
  • Updated the corresponding error message to clarify that 0 is allowed for using default frequency

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/web/src/validation/config/lora.ts Modified validation rule to allow 0 as valid input for overrideFrequency
packages/web/public/i18n/locales/en/common.json Updated error message to document that 0 is valid for using default frequency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/web/public/i18n/locales/en/common.json Outdated
@philon- philon- requested a review from danditomaso September 10, 2025 16:09
@vercel

vercel Bot commented Sep 10, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web-test Ready Ready Preview Comment Sep 10, 2025 6:04pm

@philon- philon- merged commit 1214b6e into meshtastic:main Sep 10, 2025
4 checks passed
@philon- philon- deleted the fix-allow-default-frequency branch September 11, 2025 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants