From 6b2d59ef279601ca85b29b7a5b31a2f89d4b2d59 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 24 Aug 2018 14:33:40 +0200 Subject: [PATCH] posix: flush tlv file after write --- platform/posix/btstack_tlv_posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/posix/btstack_tlv_posix.c b/platform/posix/btstack_tlv_posix.c index 120d706e9..eabd5e9ff 100644 --- a/platform/posix/btstack_tlv_posix.c +++ b/platform/posix/btstack_tlv_posix.c @@ -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; }