memcpy() instead of delaying a fix to flash RAM byte order

This commit is contained in:
2016-04-11 21:44:11 -04:00
parent d3794b4d02
commit 9ec5f74e13
1 changed files with 1 additions and 4 deletions

View File

@ -175,10 +175,7 @@ void CFlashram::WriteToFlashCommand(uint32_t FlashRAM_Command)
uint8_t * FlashRamPointer = m_FlashRamPointer;
memset(FlipBuffer, 0, sizeof(FlipBuffer));
for (edx = 0; edx < 128; edx += 1)
{
FlipBuffer[edx] = FlashRamPointer[edx ^ 0];
} /* To do: Have controllable XOR mask to correct flash RAM. */
memcpy(&FlipBuffer[0], FlashRamPointer, 128);
m_File.Seek(m_FlashRAM_Offset, CFile::begin);
m_File.Write(FlipBuffer, 128);