mirror of
https://github.com/oe7drt/YSFClients.git
synced 2025-12-06 05:32:02 +01:00
Merge pull request #86 from jpronans/master
Float does not appear to have enough precision for the calculation
This commit is contained in:
commit
a6051f79b4
|
|
@ -150,8 +150,8 @@ void CAPRSWriter::sendIdFrames()
|
|||
char desc[100U];
|
||||
if (m_txFrequency != 0U) {
|
||||
float offset = float(int(m_rxFrequency) - int(m_txFrequency)) / 1000000.0F;
|
||||
::sprintf(desc, "MMDVM Voice %.5lfMHz %c%.4lfMHz",
|
||||
float(m_txFrequency) / 1000000.0F,
|
||||
::sprintf(desc, "MMDVM Voice %.5LfMHz %c%.4lfMHz",
|
||||
(long double)(m_txFrequency) / 1000000.0F,
|
||||
offset < 0.0F ? '-' : '+',
|
||||
::fabs(offset));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue