Set freewheel-on colors immediately, when button is pressed
authorNikita Zlobin <cook60020tmp@mail.ru>
Tue, 28 Dec 2010 16:10:19 +0000 (28 21:10 +0500)
committerNikita Zlobin <cook60020tmp@mail.ru>
Tue, 28 Dec 2010 16:10:19 +0000 (28 21:10 +0500)
jack_freewheel_button

index 82761f1..ddd7cf1 100755 (executable)
@@ -40,6 +40,9 @@ def on_button_toggled(button):
   if button.get_active():
     b_label.set_label(text_generic+"\n"+fw_on)
     jack.set_freewheel(1)
+
+    global blink_state
+    blink_state = True
     blink_toggle()
   else:
     b_label.set_label(text_generic+"\n"+fw_off)