HAL_ChibiOS: add support for unformatted board id

This commit is contained in:
Siddharth Purohit authored and Andrew Tridgell committed 2018-11-29 16:36:29 +11:00
1 parent 8df52aba29
commit 3b2fdc9c70
2 files changed
+9 -1

No files matched your search

+7
View File
@@ -253,3 +253,10 @@ bool Util::get_system_id(char buf[40])
buf[39] = 0;
return true;
}
bool Util::get_system_id_unformatted(uint8_t buf[], uint8_t &len)
{
len = MIN(12, len);
memcpy(buf, (const void *)UDID_START, len);
return true;
}