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