mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-10 01:18:54 +08:00
Update file_server_backend.hpp
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user