mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +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) {
|
if (lb->data) {
|
||||||
free(lb->data);
|
free(lb->data);
|
||||||
|
lb->write_ptr = 0;
|
||||||
|
lb->read_ptr = 0;
|
||||||
|
lb->data = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user