mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 07:41:36 +08:00
Fix sdcard logging when crypto is used but algorithm is set to NONE
If the board supports encrypting logfiles, but the parameter SDCARD_ALGORITHM is set to NONE, the log should be written to the sdcard in plaintext format. This fixes a bug which caused logger to hang in mutex instead. Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Daniel Agar
parent
0104b84289
commit
a2dc6e63cf
@@ -86,6 +86,7 @@ LogWriterFile::~LogWriterFile()
|
|||||||
bool LogWriterFile::init_logfile_encryption(const char *filename)
|
bool LogWriterFile::init_logfile_encryption(const char *filename)
|
||||||
{
|
{
|
||||||
if (_algorithm == CRYPTO_NONE) {
|
if (_algorithm == CRYPTO_NONE) {
|
||||||
|
_min_blocksize = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user