Merge pull request #633 from on7lds/dev

change tx and rx frequency display precision (to reflect ini file significant figures)
This commit is contained in:
Jonathan Naylor 2020-08-14 09:33:53 +01:00 committed by GitHub
commit f71c8ce7bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -121,8 +121,8 @@ bool CNextion::open()
sendCommand("bkcmd=0"); sendCommand("bkcmd=0");
sendCommandAction(0U); sendCommandAction(0U);
m_fl_txFrequency = float(m_txFrequency) / 1000000.0F; m_fl_txFrequency = double(m_txFrequency) / 1000000.0F;
m_fl_rxFrequency = float(m_rxFrequency) / 1000000.0F; m_fl_rxFrequency = double(m_rxFrequency) / 1000000.0F;
setIdle(); setIdle();
@ -152,11 +152,11 @@ void CNextion::setIdleInt()
sendCommand(command); sendCommand(command);
sendCommandAction(17U); sendCommandAction(17U);
::sprintf(command, "t30.txt=\"%3.4f\"",m_fl_rxFrequency); // RX freq ::sprintf(command, "t30.txt=\"%3.6f\"",m_fl_rxFrequency); // RX freq
sendCommand(command); sendCommand(command);
sendCommandAction(20U); sendCommandAction(20U);
::sprintf(command, "t32.txt=\"%3.4f\"",m_fl_txFrequency); // TX freq ::sprintf(command, "t32.txt=\"%3.6f\"",m_fl_txFrequency); // TX freq
sendCommand(command); sendCommand(command);
sendCommandAction(21U); sendCommandAction(21U);

View file

@ -100,8 +100,8 @@ private:
unsigned int m_berCount2; unsigned int m_berCount2;
unsigned int m_txFrequency; unsigned int m_txFrequency;
unsigned int m_rxFrequency; unsigned int m_rxFrequency;
float m_fl_txFrequency; double m_fl_txFrequency;
float m_fl_rxFrequency; double m_fl_rxFrequency;
bool m_displayTempInF; bool m_displayTempInF;
std::string m_location; std::string m_location;