mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 13:47:35 +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)
|
||||
{
|
||||
if (_algorithm == CRYPTO_NONE) {
|
||||
_min_blocksize = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user