@@ -1897,9 +1897,9 @@ static DocParseErr_t initDocModel( JsonDocModel_t * pDocModel,
1897
1897
static OtaErr_t validateUpdateVersion ( const OtaFileContext_t * pFileContext )
1898
1898
{
1899
1899
OtaErr_t err = OtaErrNone ;
1900
- AppVersion32_t newVersion ;
1900
+ AppVersion32_t previousVersion ;
1901
1901
1902
- ( void ) newVersion ; /* For suppressing compiler-warning: unused variable. */
1902
+ ( void ) previousVersion ; /* For suppressing compiler-warning: unused variable. */
1903
1903
1904
1904
/* Only check for versions if the target is self */
1905
1905
if ( ( otaAgent .serverFileID == 0U ) && ( otaAgent .fileContext .fileType == configOTA_FIRMWARE_UPDATE_FILE_TYPE_ID ) )
@@ -1928,12 +1928,12 @@ static OtaErr_t validateUpdateVersion( const OtaFileContext_t * pFileContext )
1928
1928
* Update version received is newer than current version. */
1929
1929
else
1930
1930
{
1931
- newVersion .u .unsignedVersion32 = pFileContext -> updaterVersion ;
1931
+ previousVersion .u .unsignedVersion32 = pFileContext -> updaterVersion ;
1932
1932
LogInfo ( ( "New image has a higher version number than the current image: "
1933
- "Old image version=%u.%u.%u"
1934
- ", New image version=%u.%u.%u" ,
1933
+ "New image version=%u.%u.%u"
1934
+ ", Previous image version=%u.%u.%u" ,
1935
1935
appFirmwareVersion .u .x .major , appFirmwareVersion .u .x .minor , appFirmwareVersion .u .x .build ,
1936
- newVersion .u .x .major , newVersion .u .x .minor , newVersion .u .x .build ) );
1936
+ previousVersion .u .x .major , previousVersion .u .x .minor , previousVersion .u .x .build ) );
1937
1937
}
1938
1938
}
1939
1939
0 commit comments