-
Notifications
You must be signed in to change notification settings - Fork 87
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
Fix frequency_string_short and its usage #20
Conversation
why changing the frequency_string_short() signature to make it return an int? Is this returned values used / planned to be used somewhere ? |
Yes, I am working on code that uses this same function to print the current frequency on recall buttons. That is how I found this bug. |
See NanoVNA chprintf.c file for print frequence need only use "%q" and also support any formatting |
Ok then this should be explained in the commit message IMHO (or be part of a dedicated commit). |
The function frequency_string_short did not append 'Mhz' properly for 1-9Mhz cell_draw_marker_info stored frequency in a int32_t instead of freqHz_t, which caused sign conversion after 2.1Ghz, making marker reading beyond that point bogus. Note that this is only visible with multiple markers.
@douardda I changed the code. It no longer returns the amount of characters printed. It is better take small steps. My other code is obsolete now due to @DiSlord great work on the GUI. |
Can this please be merged? It came up again as #40 . |
Sorry, thought this was already included in another PR. It's merged now. |
Great! Thank you so much for the quick response. |
when can we expect a new release ?? i am no programer (just a user) so i have no idea how to compile a fw ... (i can upload a new one ... thats easy) ... |
indeed, I've opened an issue for this #41 |
@DG9BFC I've compiled the current master (rev e017aab) and put them here https://github.com/douardda/NanoVNA-V2-firmware/releases/tag/20200905 I've only tested the 2.8" (ili9341) version since I do not have a 4" display yet (should arrive in a few days hopefully). Hope this helps. |
tested on small and big screen ... seems to work fine (both fw versions tested!! ... small and big screen!!) |
tested on big screen ,no problem . |
Fix frequency_string_short and its usage
When showing multiple markers there where two issues: