Make m_dcd global variable and save extra function

This commit is contained in:
phl0
2016-11-17 14:05:19 +01:00
parent e3f35e0875
commit 230fab308c
6 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ void CSerialPort::getStatus()
else
reply[10U] = 0U;
if (io.getDecode())
if (m_dcd)
reply[11U] = 1U;
else
reply[11U] = 0U;