From 0e13dd0267dbb72e11c3dfe4e196ffdeab321a43 Mon Sep 17 00:00:00 2001 From: phdlee Date: Fri, 15 Jun 2018 21:43:56 +0900 Subject: [PATCH] modified Checksum logic for Nextion LCD --- ubitx_20/ubitx_lcd_nextion.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubitx_20/ubitx_lcd_nextion.ino b/ubitx_20/ubitx_lcd_nextion.ino index 6f228b7..b1212bb 100644 --- a/ubitx_20/ubitx_lcd_nextion.ino +++ b/ubitx_20/ubitx_lcd_nextion.ino @@ -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);