From: yomguy Date: Wed, 18 Jul 2012 21:05:44 +0000 (+0200) Subject: try fix OSC bug X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ecffa959def2959cb9ffb36f164d48c965a73790;p=deefuzzer.git try fix OSC bug --- 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