diff --git a/.gitignore b/.gitignore index a66f5e5..83f3764 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.pyc .tox .cache +*.egg-info diff --git a/dsmr_parser/serial.py b/dsmr_parser/serial.py index 114244c..3e7aa70 100644 --- a/dsmr_parser/serial.py +++ b/dsmr_parser/serial.py @@ -1,6 +1,6 @@ import serial -from dsmr_parser.parsers import TelegramParser, V3TelegramParser +from dsmr_parser.parsers import TelegramParser, TelegramParserV2_2 SERIAL_SETTINGS_V2_2 = { 'baudrate': 9600, @@ -38,7 +38,7 @@ class SerialReader(object): self.serial_settings['port'] = device if serial_settings is SERIAL_SETTINGS_V2_2: - telegram_parser = V3TelegramParser + telegram_parser = TelegramParserV2_2 else: telegram_parser = TelegramParser self.telegram_parser = telegram_parser(telegram_specification)