Switch: Set switch_value default according to max_pwm of output
authorBen Gamari <bgamari.foss@gmail.com>
Sat, 29 Jun 2013 04:55:39 +0000 (00:55 -0400)
committerBen Gamari <bgamari.foss@gmail.com>
Sat, 29 Jun 2013 04:57:46 +0000 (00:57 -0400)
commit043f77ba34d4b840dfbd2a9033bd3c6e0eec9798
tree33d737996e12f14218f816d5b80743c6e7ba6b5d
parentfe7b1d9c640307599d31952b22ad3e6c4b312cd9
Switch: Set switch_value default according to max_pwm of output

Previously the output was modulated with a very low duty cycle due to a
hard-coded default value of 1. Fixes #195.
src/modules/tools/switch/Switch.cpp