mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
HAL_ChibiOS: add support for unformatted board id
This commit is contained in:
1 parent
8df52aba29
commit
3b2fdc9c70
2 files changed
+9
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user