modbus_tcp
make the log more usefull
This commit is contained in:
@@ -56,7 +56,7 @@ static err_t modbus_incoming_data(void* arg, struct tcp_pcb* pcb, struct pbuf* p
|
|||||||
text[TEXT_LENGTH - 1] = '\0';
|
text[TEXT_LENGTH - 1] = '\0';
|
||||||
|
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
LOG_INFO(TAG, "data not null\n");
|
LOG_INFO(TAG, "data is valid\n");
|
||||||
// Process the modbus data
|
// Process the modbus data
|
||||||
tcp_recved(pcb, p->tot_len);
|
tcp_recved(pcb, p->tot_len);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user