Commit 4d75c35b53bbe453829fd17084ce73ac404d03eb
1 parent
4fabc5b3
Minor change in the debug output
Showing
1 changed file
with
0 additions
and
4 deletions
modbus/modbus.c
| @@ -365,10 +365,8 @@ static int modbus_send(modbus_param_t *mb_param, uint8_t *query, | @@ -365,10 +365,8 @@ static int modbus_send(modbus_param_t *mb_param, uint8_t *query, | ||
| 365 | } | 365 | } |
| 366 | 366 | ||
| 367 | if (mb_param->debug) { | 367 | if (mb_param->debug) { |
| 368 | - printf("\n"); | ||
| 369 | for (i = 0; i < query_length; i++) | 368 | for (i = 0; i < query_length; i++) |
| 370 | printf("[%.2X]", query[i]); | 369 | printf("[%.2X]", query[i]); |
| 371 | - | ||
| 372 | printf("\n"); | 370 | printf("\n"); |
| 373 | } | 371 | } |
| 374 | 372 | ||
| @@ -551,8 +549,6 @@ int receive_msg(modbus_param_t *mb_param, | @@ -551,8 +549,6 @@ int receive_msg(modbus_param_t *mb_param, | ||
| 551 | break; | 549 | break; |
| 552 | } | 550 | } |
| 553 | } | 551 | } |
| 554 | - if (mb_param->debug) | ||
| 555 | - printf("\nlength_to_read: %d\n", length_to_read); | ||
| 556 | 552 | ||
| 557 | /* Moves the pointer to receive other datas */ | 553 | /* Moves the pointer to receive other datas */ |
| 558 | p_msg = &(p_msg[read_ret]); | 554 | p_msg = &(p_msg[read_ret]); |