@ -344,30 +344,94 @@ uint32_t IO::getWatchdog()
void IO::selfTest()
{
bool ledValue = false;
uint32_t ledCount = 0U;
uint32_t blinks = 0U;
while (true) {
for (uint8_t i = 0; i < 6; i++) {
ledCount++;
delayUS(1000U);
if (ledCount >= 125U) {
ledCount = 0U;
ledValue = !ledValue;
setLEDInt(!ledValue);
// We exclude PTT to avoid trigger the transmitter
setPTTInt(ledValue);
setLEDInt(ledValue);
setCOSInt(ledValue);
setDMRInt(ledValue);
setP25Int(ledValue);
setNXDNInt(ledValue);
blinks++;
delayUS(250);
if (blinks > 5U)
break;
}
// blinkin lights
setLEDInt(false);
setCOSInt(false);
setDMRInt(false);
setP25Int(false);
setNXDNInt(false);
setLEDInt(true);
setCOSInt(true);
setDMRInt(true);
setP25Int(true);
setNXDNInt(true);
/// <summary>
@ -878,7 +878,7 @@ void SerialPort::getStatus()
// send all sorts of interesting internal values
reply[0U] = DVM_FRAME_START;
reply[1U] = 11U;
reply[1U] = 12U;
reply[2U] = CMD_GET_STATUS;
reply[3U] = 0x01U;
Powered by TurnKey Linux.