mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2026-04-05 06:15:15 +00:00
add udid support to the firmware
This commit is contained in:
parent
e1ef453979
commit
279251d484
2 changed files with 31 additions and 1 deletions
|
|
@ -78,6 +78,8 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
|||
|
||||
const uint8_t PROTOCOL_VERSION = 1U;
|
||||
|
||||
char UDID[] = "00000000000000000000000000000000";
|
||||
|
||||
CSerialPort::CSerialPort() :
|
||||
m_buffer(),
|
||||
m_ptr(0U),
|
||||
|
|
@ -198,7 +200,7 @@ void CSerialPort::getStatus()
|
|||
|
||||
void CSerialPort::getVersion()
|
||||
{
|
||||
uint8_t reply[100U];
|
||||
uint8_t reply[132U];
|
||||
|
||||
reply[0U] = MMDVM_FRAME_START;
|
||||
reply[1U] = 0U;
|
||||
|
|
@ -210,6 +212,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