mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
AP_UAVCAN: fixed string warnings
This commit is contained in:
parent
930726ca9a
commit
6803408453
@ -552,7 +552,7 @@ void trampoline_handleNodeInfo(const uavcan::ServiceCallResult<uavcan::protocol:
|
|||||||
uavcan::copy(resp.getResponse().hardware_version.unique_id.begin(),
|
uavcan::copy(resp.getResponse().hardware_version.unique_id.begin(),
|
||||||
resp.getResponse().hardware_version.unique_id.end(),
|
resp.getResponse().hardware_version.unique_id.end(),
|
||||||
unique_id);
|
unique_id);
|
||||||
strncpy(name, resp.getResponse().name.c_str(), sizeof(name)-1);
|
strncpy_noterm(name, resp.getResponse().name.c_str(), sizeof(name)-1);
|
||||||
AP::uavcan_dna_server().handleNodeInfo(node_id, unique_id, name);
|
AP::uavcan_dna_server().handleNodeInfo(node_id, unique_id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user