Skip to content

Commit

Permalink
Merge pull request #31 from ChristianIvarsson/master
Browse files Browse the repository at this point in the history
me9.6 cal should only read 2M
  • Loading branch information
mattiasclaesson authored Jan 25, 2022
2 parents 9e8f988 + 2e743f2 commit 1aa4b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrionicCANLib/Trionic8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6747,7 +6747,7 @@ public void ReadFlashME96(object sender, DoWorkEventArgs workEvent)
int range = end - start;
int blockSize = 0x80;
int bufpnt = startAddress;
byte[] buf = new byte[0x280000];
byte[] buf = new byte[(end <= 0x200000) ? 0x200000 : 0x280000];
// Pre-fill buffer with 0xFF (unprogrammed FLASH chip value)
for (int i = 0; i < buf.Length; i++)
{
Expand Down

0 comments on commit 1aa4b5e

Please sign in to comment.