Skip to content

Commit

Permalink
CBMC fixes - make return type uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleysmith23 committed Jan 24, 2024
1 parent 3c32a46 commit eacb26a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ static void resetEventQueue( void );
/**
* @brief Calculate the number of blocks required to download the file.
*/
static uint16_t fileSizeToBlocks( uint32_t fileSize );
static uint32_t fileSizeToBlocks( uint32_t fileSize );

/* OTA state event handler functions. */

Expand Down Expand Up @@ -3100,9 +3100,9 @@ static void callOtaCallback( OtaJobEvent_t eEvent,
}
}

static uint16_t fileSizeToBlocks( uint32_t fileSize )
static uint32_t fileSizeToBlocks( uint32_t fileSize )
{
return ( uint16_t ) ( ( fileSize + ( OTA_FILE_BLOCK_SIZE - 1U ) ) >> otaconfigLOG2_FILE_BLOCK_SIZE );
return ( uint32_t ) ( ( fileSize + ( OTA_FILE_BLOCK_SIZE - 1U ) ) >> otaconfigLOG2_FILE_BLOCK_SIZE );
}

void OTA_EventProcessingTask( const void * pUnused )
Expand Down

0 comments on commit eacb26a

Please sign in to comment.