Fixes the neutral value for PXX as described in #1694
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user