Skip to content

Commit

Permalink
px4uploader: extf crc exclude padding
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Feb 12, 2024
1 parent c9c41e9 commit 63d57c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ExtLibs/px4uploader/Firmware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public int crc(int padlen)

public int extf_crc(int padlen)
{
uint state = __crc32(extf_imagebyte, 0);
uint state = __crc32(extf_imagebyte.Take(padlen).ToArray(), 0);

return (int)state;
}
Expand Down
10 changes: 10 additions & 0 deletions build - debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin;C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\MSBuild\15.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin

del bin\release\MissionPlannerBeta.zip

.nuget\nuget.exe restore MissionPlanner.sln

MSBuild.exe MissionPlanner.sln /restore /m /p:Configuration=Debug /verbosity:n

pause

0 comments on commit 63d57c4

Please sign in to comment.