mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 15:05:51 +00:00
Fix HWType string of RPT_HAT_TGO to work with MMDVMCal and add udid support to the firmware
This commit is contained in:
parent
7c863671c9
commit
d6d03158d0
3 changed files with 35 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
|||
#endif
|
||||
|
||||
#if defined(STM32F4_RPT_HAT_TGO)
|
||||
#define HW_TYPE "MMDVM_RPT_HAT_TGO"
|
||||
#define HW_TYPE "MMDVM RPT_HAT_TGO"
|
||||
#else
|
||||
#define HW_TYPE "MMDVM"
|
||||
#endif
|
||||
|
|
@ -109,6 +109,7 @@ const char HARDWARE[] = concat(HW_TYPE, DESCRIPTION, TCXO, __TIME__, __DATE__);
|
|||
|
||||
const uint8_t PROTOCOL_VERSION = 1U;
|
||||
|
||||
char UDID[] = "00000000000000000000000000000000";
|
||||
|
||||
CSerialPort::CSerialPort() :
|
||||
m_buffer(),
|
||||
|
|
@ -237,7 +238,7 @@ void CSerialPort::getStatus()
|
|||
|
||||
void CSerialPort::getVersion()
|
||||
{
|
||||
uint8_t reply[150U];
|
||||
uint8_t reply[192U];
|
||||
|
||||
reply[0U] = MMDVM_FRAME_START;
|
||||
reply[1U] = 0U;
|
||||
|
|
@ -249,6 +250,10 @@ void CSerialPort::getVersion()
|
|||
for (uint8_t i = 0U; HARDWARE[i] != 0x00U; i++, count++)
|
||||
reply[count] = HARDWARE[i];
|
||||
|
||||
reply[count++] = '\0';
|
||||
for (uint8_t i = 0U; UDID[i] != 0x00U; i++, count++)
|
||||
reply[count] = UDID[i];
|
||||
|
||||
reply[1U] = count;
|
||||
|
||||
writeInt(1U, reply, count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue