Debugging the set frequency command.
This commit is contained in:
parent
e11be44f79
commit
6c0c553a47
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue