mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 05:03:35 +08:00
FirmwareCommon signature fix
This commit is contained in:
@@ -55,6 +55,8 @@ public:
|
|||||||
|
|
||||||
const unsigned MaxChunk = 512 / sizeof(uint64_t);
|
const unsigned MaxChunk = 512 / sizeof(uint64_t);
|
||||||
|
|
||||||
|
const uint64_t signature = getAppDescriptorSignature();
|
||||||
|
|
||||||
int rv = -ENOENT;
|
int rv = -ENOENT;
|
||||||
uint64_t chunk[MaxChunk];
|
uint64_t chunk[MaxChunk];
|
||||||
int fd = open(path, O_RDONLY);
|
int fd = open(path, O_RDONLY);
|
||||||
@@ -82,7 +84,7 @@ public:
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (*p == getAppDescriptorSignature())
|
if (*p == signature)
|
||||||
{
|
{
|
||||||
pdescriptor = (AppDescriptor*) p;
|
pdescriptor = (AppDescriptor*) p;
|
||||||
descriptor = *pdescriptor;
|
descriptor = *pdescriptor;
|
||||||
|
|||||||
Reference in New Issue
Block a user