mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:41:35 +08:00
Fixed repeated output
This commit is contained in:
@@ -1055,7 +1055,7 @@ void UavcanServers::unpackFwFromROMFS(const char* sd_path, const char* romfs_pat
|
|||||||
dstpath[dstpath_ver_len] = '/';
|
dstpath[dstpath_ver_len] = '/';
|
||||||
memcpy(&dstpath[dstpath_ver_len + 1], fw_dirent->d_name, fw_len + 1);
|
memcpy(&dstpath[dstpath_ver_len + 1], fw_dirent->d_name, fw_len + 1);
|
||||||
unlink(dstpath);
|
unlink(dstpath);
|
||||||
warnx("unlink: removed '%s/%s'", dstpath, fw_dirent->d_name);
|
warnx("unlink: removed '%s'", dstpath);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// User file, don't copy firmware
|
// User file, don't copy firmware
|
||||||
|
|||||||
Reference in New Issue
Block a user