add O_SYNC flag for UioMapper

This commit is contained in:
Robin Müller 2023-04-03 21:57:18 +02:00
parent 7a392dc33a
commit 7966ede11b
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -36,7 +36,7 @@ UioMapper::~UioMapper() {}
ReturnValue_t UioMapper::getMappedAdress(uint32_t** address, Permissions permissions) {
ReturnValue_t result = returnvalue::OK;
int fd = open(uioFile.c_str(), O_RDWR);
int fd = open(uioFile.c_str(), O_RDWR | O_SYNC);
if (fd < 1) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << "UioMapper::getMappedAdress: Invalid UIO device file " << uioFile << std::endl;