Fixes the neutral value for PXX as described in #1694

This commit is contained in:
bsongis
2014-09-10 12:14:59 +02:00
parent 40d705af15
commit 651b1247fb
+2 -1
View File
@@ -310,7 +310,8 @@ void putPcmHead()
uint16_t scaleForPXX( uint8_t i ) uint16_t scaleForPXX( uint8_t i )
{ {
return channelOutputs[i] * 3 / 4 + 2250 ; int16_t value = ( ( i < 16 ) ? channelOutputs[i] * 3 / 4 : 0 ) + 1024;
return limit<uint16_t>(1, value, 2046);
} }
void setupPulsesPXX() void setupPulsesPXX()