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
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A
6 changed files with 6 additions and 10 deletions

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;