Skip to content

Commit

Permalink
Re-writing RAM locations after an ECU reset will no longer attempt to…
Browse files Browse the repository at this point in the history
… write read-only locations.
  • Loading branch information
malcom2073 committed Nov 14, 2013
1 parent 7335179 commit 479c8a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/freeems/freeemscomms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,13 @@ FreeEmsComms::FreeEmsComms(QObject *parent) : EmsComms(parent)
void FreeEmsComms::writeAllRamToRam()
{
QList<unsigned short> ramlist = emsData.getTopLevelDeviceRamLocations();

for (int i=0;i<ramlist.size();i++)
{
updateBlockInRam(ramlist[i],0,emsData.getDeviceRamBlock(ramlist[i]).size(),emsData.getDeviceRamBlock(ramlist[i]));
if (!emsData.isReadOnlyRamBlock(ramlist[i]))
{
updateBlockInRam(ramlist[i],0,emsData.getDeviceRamBlock(ramlist[i]).size(),emsData.getDeviceRamBlock(ramlist[i]));
}
}
}

Expand Down

0 comments on commit 479c8a7

Please sign in to comment.