mirror of
https://github.com/emqx/neuron.git
synced 2026-10-26 20:09:48 +08:00
Merge pull request #2345 from hxy7yx/v2.7-1
[v2.7]fix(modbus):clear recv buf before sending
This commit is contained in:
@@ -104,6 +104,8 @@ int modbus_send_msg(void *ctx, uint16_t n_byte, uint8_t *bytes)
|
||||
neu_plugin_t *plugin = (neu_plugin_t *) ctx;
|
||||
int ret = 0;
|
||||
|
||||
neu_conn_clear_recv_buffer(plugin->conn);
|
||||
|
||||
plog_send_protocol(plugin, bytes, n_byte);
|
||||
|
||||
if (plugin->is_server) {
|
||||
|
||||
Reference in New Issue
Block a user