Skip to content

Commit

Permalink
Merge pull request #627 from drowe67/ms-freq-load-double
Browse files Browse the repository at this point in the history
Use double precision instead of float for loading frequency list.
  • Loading branch information
tmiw authored Dec 27, 2023
2 parents 30e9100 + 6ca5c01 commit 146eed8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
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

0 comments on commit 146eed8

Please sign in to comment.