mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 19:01:06 +00:00
posix: flush tlv file after write
This commit is contained in:
parent
2370d9c182
commit
6b2d59ef27
@ -77,6 +77,7 @@ static int btstack_tlv_posix_append_tag(btstack_tlv_posix_t * self, uint32_t tag
|
||||
if (written_header != sizeof(header)) return 1;
|
||||
size_t written_value = fwrite(data, 1, data_size, self->file);
|
||||
if (written_value != data_size) return 1;
|
||||
fflush(self->file);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user