mirror of https://github.com/g4klx/MMDVM.git
Add carrier detect LED to MMDVM firmware
This commit is contained in:
parent
d3eb7dbd4c
commit
e3f35e0875
5
IO.cpp
5
IO.cpp
|
@ -312,6 +312,11 @@ void CIO::setDecode(bool dcd)
|
|||
m_dcd = dcd;
|
||||
}
|
||||
|
||||
bool CIO::getDecode()
|
||||
{
|
||||
return m_dcd;
|
||||
}
|
||||
|
||||
void CIO::setADCDetection(bool detect)
|
||||
{
|
||||
m_detect = detect;
|
||||
|
|
2
IO.h
2
IO.h
|
@ -51,6 +51,8 @@ public:
|
|||
|
||||
bool hasLockout() const;
|
||||
|
||||
bool getDecode();
|
||||
|
||||
void resetWatchdog();
|
||||
|
||||
private:
|
||||
|
|
|
@ -116,7 +116,7 @@ void CSerialPort::getStatus()
|
|||
|
||||
// Send all sorts of interesting internal values
|
||||
reply[0U] = MMDVM_FRAME_START;
|
||||
reply[1U] = 11U;
|
||||
reply[1U] = 12U;
|
||||
reply[2U] = MMDVM_GET_STATUS;
|
||||
|
||||
reply[3U] = 0x00U;
|
||||
|
@ -180,7 +180,12 @@ void CSerialPort::getStatus()
|
|||
else
|
||||
reply[10U] = 0U;
|
||||
|
||||
writeInt(1U, reply, 11);
|
||||
if (io.getDecode())
|
||||
reply[11U] = 1U;
|
||||
else
|
||||
reply[11U] = 0U;
|
||||
|
||||
writeInt(1U, reply, 12);
|
||||
}
|
||||
|
||||
void CSerialPort::getVersion()
|
||||
|
|
Loading…
Reference in New Issue