mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Debugging the set frequency command.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user