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
+3 -2
View File
@@ -308,9 +308,10 @@ void putPcmHead()
putPcmPart( 0xC0 ) ; putPcmPart( 0xC0 ) ;
} }
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()