Fix: Ignore duplicate data blocks received when sending OTA status update to service
@@ -1543,13 +1543,17 @@ static void prvOTAUpdateTask( void * pvUnused )
}
}
else
- { /* We're actively receiving a file so update the job status as needed. */
+ {
+ if( xResult == eIngest_Result_Accepted_Continue )
+ {
+ /* We're actively receiving a file so update the job status as needed. */
/* First reset the momentum counter since we received a good block. */
C->ulRequestMomentum = 0;
prvUpdateJobStatus( C, eJobStatus_InProgress, ( int32_t ) eJobReason_Receiving, ( int32_t ) NULL );
}
}
}
+ }
else
{
/* Ignore unknown message types. */
