mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +08:00
Add more UMP logging.
This commit is contained in:
4
UMP.cpp
4
UMP.cpp
@@ -62,6 +62,8 @@ bool CUMP::open()
|
|||||||
if (m_open)
|
if (m_open)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
LogMessage("Opening the UMP");
|
||||||
|
|
||||||
bool ret = m_serial.open();
|
bool ret = m_serial.open();
|
||||||
if (!ret)
|
if (!ret)
|
||||||
return false;
|
return false;
|
||||||
@@ -252,6 +254,8 @@ void CUMP::close()
|
|||||||
if (!m_open)
|
if (!m_open)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
LogMessage("Closing the UMP");
|
||||||
|
|
||||||
m_serial.close();
|
m_serial.close();
|
||||||
|
|
||||||
m_open = false;
|
m_open = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user