mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
Complete log buffer patch set
This commit is contained in:
@@ -148,5 +148,8 @@ void logbuffer_free(struct logbuffer_s *lb)
|
||||
{
|
||||
if (lb->data) {
|
||||
free(lb->data);
|
||||
lb->write_ptr = 0;
|
||||
lb->read_ptr = 0;
|
||||
lb->data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user