diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-12 18:52:10 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-12 18:52:10 +0100 |
commit | ea8ab2793a6683dbf7807c91e1a2c1d91187981e (patch) | |
tree | 2a9736ef6b027dc03901e78c7d00316a39a5d770 /src/modules/systemlib/bson | |
parent | ab401da3e88c793ce2bbcaed34cffaf3f67eedd0 (diff) | |
download | px4-firmware-ea8ab2793a6683dbf7807c91e1a2c1d91187981e.tar.gz px4-firmware-ea8ab2793a6683dbf7807c91e1a2c1d91187981e.tar.bz2 px4-firmware-ea8ab2793a6683dbf7807c91e1a2c1d91187981e.zip |
More param command related improvements
Diffstat (limited to 'src/modules/systemlib/bson')
-rw-r--r-- | src/modules/systemlib/bson/tinybson.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/systemlib/bson/tinybson.c b/src/modules/systemlib/bson/tinybson.c index 8aca6a25d..49403c98b 100644 --- a/src/modules/systemlib/bson/tinybson.c +++ b/src/modules/systemlib/bson/tinybson.c @@ -407,6 +407,9 @@ bson_encoder_fini(bson_encoder_t encoder) memcpy(encoder->buf, &len, sizeof(len)); } + /* sync file */ + fsync(encoder->fd); + return 0; } |