mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 09:26:25 +08:00
logger:log_writer_file Do not try to store ulog name on systems without hardfault logging
This commit is contained in:
committed by
Daniel Agar
parent
f56701e72f
commit
25a27d26e0
@@ -254,7 +254,7 @@ void LogWriterFile::start_log(LogType type, const char *filename)
|
||||
|
||||
int LogWriterFile::hardfault_store_filename(const char *log_file)
|
||||
{
|
||||
#ifdef __PX4_NUTTX
|
||||
#if defined(__PX4_NUTTX) && defined(px4_savepanic)
|
||||
int fd = open(HARDFAULT_ULOG_PATH, O_TRUNC | O_WRONLY | O_CREAT);
|
||||
|
||||
if (fd < 0) {
|
||||
|
||||
Reference in New Issue
Block a user