Debugging the set frequency command.

This commit is contained in:
Jonathan Naylor 2016-02-18 19:29:28 +00:00
parent e11be44f79
commit 6c0c553a47

View file

@ -150,13 +150,13 @@ bool CModem::open()
return false; return false;
} }
ret = setConfig(); ret = setFrequency();
if (!ret) { if (!ret) {
m_serial.close(); m_serial.close();
return false; return false;
} }
ret = setFrequency(); ret = setConfig();
if (!ret) { if (!ret) {
m_serial.close(); m_serial.close();
return false; return false;
@ -815,7 +815,7 @@ bool CModem::setFrequency()
// CUtils::dump("Written", buffer, 12U); // CUtils::dump("Written", buffer, 12U);
int ret = m_serial.write(buffer, 12U); int ret = m_serial.write(buffer, 12U);
if (ret != 10) if (ret != 12)
return false; return false;
unsigned int count = 0U; unsigned int count = 0U;