Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv5r.py: work-in-progress - proposed solution for #10505 #766

Closed
wants to merge 2 commits into from

Conversation

KC9HI
Copy link
Contributor

@KC9HI KC9HI commented Sep 7, 2023

CHIRP PR Checklist

The following must be true before PRs can be merged:

  • All tests must be passing.
  • Commits should be squashed into logical units.
  • Commits should be rebased (or simply rebase-able in the web UI) on current master. Do not put merge commits in a PR.
  • Commits in a single PR should be related.
  • Major new features or bug fixes should reference a CHIRP issue.
  • New drivers should be accompanied by a test image in tests/images (except for thin aliases where the driver is sufficiently tested already).
  • All files must be GPLv3 licensed or contain no license verbiage. No additional restrictions can be placed on the usage (i.e. such as noncommercial).

Please also follow these guidelines:

  • Keep cleanups in separate commits from functional changes.
  • Please write a reasonable commit message, especially if making some change that isn't totally obvious (such as adding a new model, adding a feature, etc).
  • Do not add new py2-compatibility code (No new uses of six, future, etc).
  • All new drivers should set NEEDS_COMPAT_SERIAL=False and use MemoryMapBytes.
  • New drivers and radio models will affect the Python3 test matrix. You should regenerate this file with tox -emakesupported and include it in your commit.

@KC9HI
Copy link
Contributor Author

KC9HI commented Sep 7, 2023

@kk7ds I need another set of eyes to look at this. I am trying to get 'Settings -> Other Settings -> Power-On Message' to not pop-up the set_warning() message. It is not stored in Aux memory so it doesn't need the message.

I have been trying to solve this all day. If the solution is not simple, I can move the setting to a different tab or just live with the pop-up message.

Thanks

@KC9HI
Copy link
Contributor Author

KC9HI commented Sep 7, 2023

You can probably use the Baofeng_UV-5R.img for testing.

kk7ds and others added 2 commits September 8, 2023 18:30
The binding of the changed event for settings to catch things we need
to warn for was not properly exclusive to only those settings. Make
the event handler always fire and look up the setting by name to
check for a warning so we handle that properly.

Related to the fix for #10505
@kk7ds
Copy link
Owner

kk7ds commented Sep 9, 2023

It was an obscure bug in the settings editor itself actually! To be clear, I assume you want to remove the two set_warning() lines either always or some of the time right? AFAICT, in this patch you're always setting it anyway. I commented out the two poweron set_warning lines and saw that it still warned. That's the problem you were hitting right? Try with the commit I put in front, as I think it should be good now.

@KC9HI
Copy link
Contributor Author

KC9HI commented Sep 9, 2023

The Power-On Message Line 1/Line 2 are to still get warned. It is only the Power-On Message setting right under them (chooses between Full and Message) that is not supposed to get a warning. But that's OK. I can fix it back after I test. Thanks.

@kk7ds
Copy link
Owner

kk7ds commented Sep 9, 2023

Ah, okay makes sense. Well, it's the same issue so should be good now.

@KC9HI
Copy link
Contributor Author

KC9HI commented Sep 9, 2023

Looks good to me. It took a lot of radios and a lot of time staring at images to identify the specific radios that have the issue and a workaround that makes them behave. I found at least 2 in the nearly dozen radios that I acquired. I wanted to iron out this small issue before I attached a copy to the issue for testing. Now I should be able to do that tonight (or possibly tomorrow).

@KC9HI KC9HI closed this Oct 27, 2023
@KC9HI KC9HI deleted the uv5r-draft-for-10505 branch October 27, 2023 18:30
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.

2 participants