DGUS2 TFT Bugfix when serial error occures
This commit is contained in:
@@ -1078,6 +1078,8 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
|
||||
|
||||
if( (int)(strtod(&TFTcmdbuffer[TFTbufindw][TFTstrchr_pointer - TFTcmdbuffer[TFTbufindw] + 1], NULL)) != checksum)
|
||||
{
|
||||
HARDWARE_SERIAL_ERROR_START;
|
||||
HardwareSerial.flush();
|
||||
HARDWARE_SERIAL_ERROR_START;
|
||||
HardwareSerial.flush();
|
||||
serial3_count = 0;
|
||||
|
Reference in New Issue
Block a user