Merge pull request #2345 from hxy7yx/v2.7-1

[v2.7]fix(modbus):clear recv buf before sending
This commit is contained in:
hxy
2024-12-23 15:35:11 +08:00
committed by GitHub
3 changed files with 28 additions and 0 deletions
+2
View File
@@ -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) {