modified Checksum logic for Nextion LCD

This commit is contained in:
phdlee 2018-06-15 21:43:56 +09:00
parent c602fdde7c
commit 0e13dd0267
1 changed files with 2 additions and 1 deletions

View File

@ -865,7 +865,8 @@ void SWS_Process(void)
byte eepromCheckSum = swr_buffer[commandStartIndex + 7];
//Check Checksum
if (eepromCheckSum == (swr_buffer[commandStartIndex + 4] + swr_buffer[commandStartIndex + 5] + swr_buffer[commandStartIndex + 6]))
//if (eepromCheckSum == (swr_buffer[commandStartIndex + 4] + swr_buffer[commandStartIndex + 5] + swr_buffer[commandStartIndex + 6]))
if (eepromCheckSum == (swr_buffer[commandStartIndex + 4] + swr_buffer[commandStartIndex + 5]))
{
if (eepromIndex > 64)
EEPROM.write(eepromIndex, eepromData);