Browse Source

Moved get_config to the internal on_open event.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
22d7a9224b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      pyad2/ad2.py

+ 2
- 1
pyad2/ad2.py View File

@@ -119,7 +119,6 @@ class AD2(object):
"""
self._wire_events()
self._device.open(baudrate=baudrate, no_reader_thread=no_reader_thread)
self.get_config()

return self

@@ -412,6 +411,8 @@ class AD2(object):
"""
Internal handler for opening the device.
"""
self.get_config()

self.on_open(args, kwargs)

def _on_close(self, sender, *args, **kwargs):


Loading…
Cancel
Save