# HG changeset patch # User David McClosky # Date 1181929665 0 # Node ID ce302e4a73dc190b5115140f8e3018b61f340b79 # Parent 0db89c347000e4d71c6258fd54eb1632ea38f2cb keyboardcomposer: hw startup should move if value is 0 diff -r 0db89c347000 -r ce302e4a73dc bin/keyboardcomposer --- a/bin/keyboardcomposer Fri Jun 15 17:41:32 2007 +0000 +++ b/bin/keyboardcomposer Fri Jun 15 17:47:45 2007 +0000 @@ -240,8 +240,9 @@ # 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)