mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
DataFlash: make mode and messages critical
This commit is contained in:
parent
c2d61391ef
commit
2b02911546
@ -1011,7 +1011,7 @@ bool DataFlash_Class::Log_Write_Message(const char *message)
|
||||
msg : {}
|
||||
};
|
||||
strncpy(pkt.msg, message, sizeof(pkt.msg));
|
||||
return WriteBlock(&pkt, sizeof(pkt));
|
||||
return WriteCriticalBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
|
||||
// Write a text message to the log
|
||||
@ -1023,7 +1023,7 @@ bool DataFlash_Class::Log_Write_Message_P(const prog_char_t *message)
|
||||
msg : {}
|
||||
};
|
||||
strncpy_P(pkt.msg, message, sizeof(pkt.msg));
|
||||
return WriteBlock(&pkt, sizeof(pkt));
|
||||
return WriteCriticalBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
|
||||
// Write a POWR packet
|
||||
@ -1401,7 +1401,7 @@ bool DataFlash_Class::Log_Write_Mode(uint8_t mode)
|
||||
mode : mode,
|
||||
mode_num : mode
|
||||
};
|
||||
return WriteBlock(&pkt, sizeof(pkt));
|
||||
return WriteCriticalBlock(&pkt, sizeof(pkt));
|
||||
}
|
||||
|
||||
// Write ESC status messages
|
||||
|
Loading…
Reference in New Issue
Block a user