posix: flush tlv file after write

This commit is contained in:
Matthias Ringwald 2018-08-24 14:33:40 +02:00
parent 2370d9c182
commit 6b2d59ef27

View File

@ -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;
}