Skip to content

Commit

Permalink
Merge pull request #4 from moninom1/fixUncrustify
Browse files Browse the repository at this point in the history
Fix uncrustify errors
  • Loading branch information
moninom1 committed May 10, 2023
2 parents 9c53635 + 165fcf4 commit 97c6aee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ff_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2499,7 +2499,7 @@ int32_t FF_PutC( FF_FILE * pxFile,
FF_Error_t xResult;

if( pxFile == NULL )
{ /* Ensure we don't have a Null file pointer on a Public interface. */
{ /* Ensure we don't have a Null file pointer on a Public interface. */
xResult = FF_ERR_NULL_POINTER | FF_PUTC;
}
else if( ( pxFile->ucMode & FF_MODE_WRITE ) == 0 )
Expand Down Expand Up @@ -3163,7 +3163,7 @@ FF_Error_t FF_Close( FF_FILE * pxFile )

/* Handle Linked list! */
FF_PendSemaphore( pxFile->pxIOManager->pvSemaphore );
{ /* Semaphore is required, or linked list could become corrupted. */
{ /* Semaphore is required, or linked list could become corrupted. */
pxFileChain = ( FF_FILE * ) pxFile->pxIOManager->FirstFile;

if( pxFileChain == pxFile )
Expand Down
4 changes: 2 additions & 2 deletions ff_ioman.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ int32_t FF_BlockWrite( FF_IOManager_t * pxIOManager,
if( ( slRetVal == 0ul ) && ( pxIOManager->xBlkDevice.fnpWriteBlocks != NULL ) )
{
do
{ /* Make sure we don't execute a NULL. */
{ /* Make sure we don't execute a NULL. */
if( ( xSemLocked == pdFALSE ) &&
( ( pxIOManager->ucFlags & FF_IOMAN_BLOCK_DEVICE_IS_REENTRANT ) == pdFALSE ) )
{
Expand Down Expand Up @@ -1518,7 +1518,7 @@ FF_Error_t FF_Mount( FF_Disk_t * pxDisk,
}

if( pxPartition->ulSectorsPerFAT == 0 )
{ /* FAT32 */
{ /* FAT32 */
pxPartition->ulSectorsPerFAT = FF_getLong( pxBuffer->pucBuffer, FF_FAT_32_SECTORS_PER_FAT );
pxPartition->ulRootDirCluster = FF_getLong( pxBuffer->pucBuffer, FF_FAT_ROOT_DIR_CLUSTER );
memcpy( pxPartition->pcVolumeLabel, pxBuffer->pucBuffer + FF_FAT_32_VOL_LABEL, sizeof( pxPartition->pcVolumeLabel ) - 1 );
Expand Down

0 comments on commit 97c6aee

Please sign in to comment.