From 22d7a9224b92101361b94e7ac4b1d8422c6df4ba Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Fri, 6 Dec 2013 12:10:55 -0800 Subject: [PATCH] Moved get_config to the internal on_open event. --- pyad2/ad2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyad2/ad2.py b/pyad2/ad2.py index e65772e..9f9a215 100644 --- a/pyad2/ad2.py +++ b/pyad2/ad2.py @@ -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):