From ecffa959def2959cb9ffb36f164d48c965a73790 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 18 Jul 2012 23:05:44 +0200 Subject: [PATCH] try fix OSC bug --- deefuzzer/station.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deefuzzer/station.py b/deefuzzer/station.py index b05789c..24ed17d 100644 --- a/deefuzzer/station.py +++ b/deefuzzer/station.py @@ -203,8 +203,8 @@ class Station(Thread): # mode = 0 means Off, mode = 1 means On if 'control' in self.station: self.osc_control_mode = int(self.station['control']['mode']) - self.osc_port = self.station['control']['port'] - if self.osc_control_mode == 1: + if self.osc_control_mode: + self.osc_port = self.station['control']['port'] self.osc_controller = OSCController(self.osc_port) self.osc_controller.start() # OSC paths and callbacks -- 2.39.5