mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
fix logger: add forgotten unlock in Logger::write_info
This commit is contained in:
@@ -692,6 +692,7 @@ void Logger::start_log()
|
|||||||
write_version();
|
write_version();
|
||||||
write_formats();
|
write_formats();
|
||||||
write_parameters();
|
write_parameters();
|
||||||
|
_writer.notify();
|
||||||
_enabled = true;
|
_enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -732,7 +733,6 @@ void Logger::write_formats()
|
|||||||
}
|
}
|
||||||
|
|
||||||
_writer.unlock();
|
_writer.unlock();
|
||||||
_writer.notify();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* write info message */
|
/* write info message */
|
||||||
@@ -757,6 +757,7 @@ void Logger::write_info(const char *name, const char *value)
|
|||||||
|
|
||||||
write_wait(buffer, msg_size);
|
write_wait(buffer, msg_size);
|
||||||
}
|
}
|
||||||
|
_writer.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* write version info messages */
|
/* write version info messages */
|
||||||
|
|||||||
Reference in New Issue
Block a user