From 338ff798ee161c6cf064726256da18773430fb8a Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Thu, 27 Apr 2017 10:25:00 +0100 Subject: [PATCH] fix: Undefined variable in trickbot decoder --- .gitignore | 2 ++ decoders/TrickBot.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4c0a9e2..1b6c54e 100755 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,8 @@ target/ #Ipython Notebook .ipynb_checkpoints +# Vim +*.sw* # PyCharms .idea/ diff --git a/decoders/TrickBot.py b/decoders/TrickBot.py index 15c8f02..a0f2f7a 100644 --- a/decoders/TrickBot.py +++ b/decoders/TrickBot.py @@ -53,7 +53,7 @@ def decode_onboard_config(data): return data[8:length+8] def config(data): - xml = decode_onboard_config(f) + xml = decode_onboard_config(data) root = ET.fromstring(xml) raw_config = {} for child in root: