Browse Source

Minor change in the debug output

Stéphane Raimbault 17 years ago
parent
commit
4d75c35b53
1 changed files with 0 additions and 4 deletions
  1. 0 4
      modbus/modbus.c

+ 0 - 4
modbus/modbus.c

@@ -365,10 +365,8 @@ static int modbus_send(modbus_param_t *mb_param, uint8_t *query,
         }
         }
 
 
         if (mb_param->debug) {
         if (mb_param->debug) {
-                printf("\n");
                 for (i = 0; i < query_length; i++)
                 for (i = 0; i < query_length; i++)
                         printf("[%.2X]", query[i]);
                         printf("[%.2X]", query[i]);
-
                 printf("\n");
                 printf("\n");
         }
         }
         
         
@@ -551,8 +549,6 @@ int receive_msg(modbus_param_t *mb_param,
                                 break;
                                 break;
                         }
                         }
                 }
                 }
-                if (mb_param->debug)
-                        printf("\nlength_to_read: %d\n", length_to_read);
 
 
                 /* Moves the pointer to receive other datas */
                 /* Moves the pointer to receive other datas */
                 p_msg = &(p_msg[read_ret]);
                 p_msg = &(p_msg[read_ret]);