diff options
Diffstat (limited to 'apps/modbus/mb.c')
-rw-r--r-- | apps/modbus/mb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/modbus/mb.c b/apps/modbus/mb.c index 209b1274c..8417d1274 100644 --- a/apps/modbus/mb.c +++ b/apps/modbus/mb.c @@ -399,10 +399,12 @@ eMBPoll( void ) ucMBFrame[usLength++] = ( uint8_t )( ucFunctionCode | MB_FUNC_ERROR ); ucMBFrame[usLength++] = eException; } +#ifdef CONFIG_MB_ASCII_ENABLED if( ( eMBCurrentMode == MB_ASCII ) && CONFIG_MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS ) { vMBPortTimersDelay( CONFIG_MB_ASCII_TIMEOUT_WAIT_BEFORE_SEND_MS ); - } + } +#endif eStatus = peMBFrameSendCur( ucMBAddress, ucMBFrame, usLength ); } break; |