mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
DataFlash: zero-fill FMT packet before logging
this prevents uninitialised data appearing at the end of strings in logs
This commit is contained in:
parent
2e9e464c4b
commit
a37a6d68f3
@ -578,6 +578,7 @@ uint16_t DataFlash_Class::StartNewLog(void)
|
||||
*/
|
||||
void DataFlash_Class::Log_Fill_Format(const struct LogStructure *s, struct log_Format &pkt)
|
||||
{
|
||||
memset(&pkt, 0, sizeof(pkt));
|
||||
pkt.head1 = HEAD_BYTE1;
|
||||
pkt.head2 = HEAD_BYTE2;
|
||||
pkt.msgid = LOG_FORMAT_MSG;
|
||||
|
Loading…
Reference in New Issue
Block a user