Commit 1133e561ca2aeac18b6022f51cf27e90f910c1f7

Authored by Stéphane Raimbault
1 parent d4216637

Remove offset variable in modbus_listen.

Showing 1 changed file with 0 additions and 1 deletions
src/modbus.c
... ... @@ -776,7 +776,6 @@ void manage_query(modbus_param_t *mb_param, unsigned char *query,
776 776 - query_size, size in bytes of the message */
777 777 int modbus_listen(modbus_param_t *mb_param, unsigned char *query, int *query_size)
778 778 {
779   - int offset = mb_param->header_length;
780 779 int ret;
781 780  
782 781 ret = receive_msg(mb_param, MSG_SIZE_UNDEFINED, query, query_size);
... ...