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

Use double precision instead of float for loading frequency list. #627

Merged
merged 2 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING "Minimum OS X deployment version")

set(PROJECT_NAME FreeDV)
set(PROJECT_VERSION 1.9.6)
set(PROJECT_VERSION 1.9.7)
set(PROJECT_DESCRIPTION "HF Digital Voice for Radio Amateurs")
set(PROJECT_HOMEPAGE_URL "https://freedv.org")

Expand Down Expand Up @@ -46,7 +46,7 @@ endif(APPLE)

# Adds a tag to the end of the version string. Leave empty
# for official release builds.
set(FREEDV_VERSION_TAG "")
set(FREEDV_VERSION_TAG "devel")

# Prevent in-source builds to protect automake/autoconf config.
# If an in-source build is attempted, you will still need to clean up a few
Expand Down
5 changes: 5 additions & 0 deletions USER_MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,11 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes

# Release Notes

## V1.9.7 TBD 2024

1. Bugfixes:
* Use double precision instead of float for loading frequency list. (PR #627)

## V1.9.6 December 2023

1. Bugfixes:
Expand Down
8 changes: 4 additions & 4 deletions src/config/ReportingConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ ReportingConfiguration::ReportingConfiguration()

if (reportingFrequencyAsKhz)
{
float khzFloat = freq / 1000.0;
newList.push_back(wxString::Format("%.01f", khzFloat));
double khzFloat = freq / 1000.0;
newList.push_back(wxString::Format("%.01lf", khzFloat));
}
else
{
float mhzFloat = freq / 1000000.0;
newList.push_back(wxString::Format("%.04f", mhzFloat));
double mhzFloat = freq / 1000000.0;
newList.push_back(wxString::Format("%.04lf", mhzFloat));
}
}

Expand Down
Loading