Update NmraDcc.cpp

Added some more comments to the ServiceMode programming DCC Packet comparison logic
This commit is contained in:
Alex Shepherd
2019-08-19 19:04:51 +12:00
committed by GitHub
parent 794128fe4b
commit d8fb99ed91

View File

@@ -1096,7 +1096,7 @@ void execDccProcessor( DCC_MSG * pDccMsg )
{
resetServiceModeTimer( 1 ) ;
//Check if size and data content of the DCC match with previous packed
//Only check the DCC Packet "Size" and "Data" fields and ignore the "PreambleBits" as they can be different to the previous packet
if(pDccMsg->Size != DccProcState.LastMsg.Size || memcmp( pDccMsg->Data, &DccProcState.LastMsg.Data, pDccMsg->Size ) != 0 )
{
DccProcState.DuplicateCount = 0 ;