demntor / pymodbus

Modbus Python release (tools included)
0 stars 0 forks source link

ModbusSerialClient _recv method don't use size parameter #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
    def _recv(self, size):
        ''' Reads data from the underlying descriptor

        :param size: The number of bytes to read
        :return: The bytes read
        '''
        return self.socket.read(1234)

should be

    def _recv(self, size):
        ''' Reads data from the underlying descriptor

        :param size: The number of bytes to read
        :return: The bytes read
        '''
        return self.socket.read(size)

patch attached.

Original issue reported on code.google.com by jjconti@gmail.com on 12 Jul 2010 at 1:34

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in revision 60

Original comment by Bashw...@gmail.com on 12 Jul 2010 at 3:35