mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 16:54:07 +08:00
Update file_server_backend.hpp
This commit is contained in:
parent
2443f29595
commit
5a0bccf787
@ -87,7 +87,7 @@ public:
|
||||
}
|
||||
|
||||
} while(len);
|
||||
|
||||
close(fd);
|
||||
out_crc64 = crc.get();
|
||||
out_size = size;
|
||||
EntryType t;
|
||||
@ -125,6 +125,7 @@ public:
|
||||
if (::lseek(fd, offset, SEEK_SET) >= 0) {
|
||||
|
||||
ssize_t len = ::read(fd, out_buffer, inout_size);
|
||||
close(fd);
|
||||
|
||||
if (len < 0) {
|
||||
return rv;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user