mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
Debugging the set frequency command.
This commit is contained in:
@@ -150,13 +150,13 @@ bool CModem::open()
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = setConfig();
|
||||
ret = setFrequency();
|
||||
if (!ret) {
|
||||
m_serial.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = setFrequency();
|
||||
ret = setConfig();
|
||||
if (!ret) {
|
||||
m_serial.close();
|
||||
return false;
|
||||
@@ -815,7 +815,7 @@ bool CModem::setFrequency()
|
||||
// CUtils::dump("Written", buffer, 12U);
|
||||
|
||||
int ret = m_serial.write(buffer, 12U);
|
||||
if (ret != 10)
|
||||
if (ret != 12)
|
||||
return false;
|
||||
|
||||
unsigned int count = 0U;
|
||||
|
||||
Reference in New Issue
Block a user