# HG changeset patch # User David McClosky # Date 2007-06-15 17:47:45 # Node ID ce302e4a73dc190b5115140f8e3018b61f340b79 # Parent 0db89c347000e4d71c6258fd54eb1632ea38f2cb keyboardcomposer: hw startup should move if value is 0 diff --git a/bin/keyboardcomposer b/bin/keyboardcomposer --- a/bin/keyboardcomposer +++ b/bin/keyboardcomposer @@ -240,8 +240,9 @@ class KeyboardComposer(Frame, SubClient) # workaround for some rounding issue, where we receive one # value and then decide to send back a value that's one step - # lower - if abs(v - self.sliders.lastValue.get(chan, 0)) <= 1: + # lower. -5 is a fallback for having no last value. hopefully + # we won't really see it + if abs(v - self.sliders.lastValue.get(chan, -5)) <= 1: return self.sliders.valueOut(chan, v)