Skip to content

Commit

Permalink
tabs to space
Browse files Browse the repository at this point in the history
  • Loading branch information
nq authored and nq committed Aug 22, 2018
1 parent 9a3a505 commit 0ecdf27
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions FreeModbus/modbus/mb_m.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static enum
STATE_ENABLED,
STATE_DISABLED,
STATE_NOT_INITIALIZED,
STATE_ESTABLISHED,
STATE_ESTABLISHED,
} eMBState = STATE_NOT_INITIALIZED;

/* Functions pointer which are initialized in eMBInit( ). Depending on the
Expand Down Expand Up @@ -292,22 +292,22 @@ eMBMasterPoll( void )
switch ( eEvent )
{
case EV_MASTER_READY:
eMBState = STATE_ESTABLISHED;
eMBState = STATE_ESTABLISHED;
break;

case EV_MASTER_FRAME_RECEIVED:
eStatus = peMBMasterFrameReceiveCur( &ucRcvAddress, &ucMBFrame, &usLength );
/* Check if the frame is for us. If not ,send an error process event. */
if ( ( eStatus == MB_ENOERR ) && ( ucRcvAddress == ucMBMasterGetDestAddress() ) )
{
( void ) xMBMasterPortEventPost( EV_MASTER_EXECUTE );
}
else
{
vMBMasterSetErrorType(EV_ERROR_RECEIVE_DATA);
( void ) xMBMasterPortEventPost( EV_MASTER_ERROR_PROCESS );
}
break;
if ( ( eStatus == MB_ENOERR ) && ( ucRcvAddress == ucMBMasterGetDestAddress() ) )
{
( void ) xMBMasterPortEventPost( EV_MASTER_EXECUTE );
}
else
{
vMBMasterSetErrorType(EV_ERROR_RECEIVE_DATA);
( void ) xMBMasterPortEventPost( EV_MASTER_ERROR_PROCESS );
}
break;

case EV_MASTER_EXECUTE:
ucFunctionCode = ucMBFrame[MB_PDU_FUNC_OFF];
Expand Down

0 comments on commit 0ecdf27

Please sign in to comment.