V 5 Beta

yes I have modified the ino for v5 to connect a 0-5v or 4-20 ma sensor using channel 3 of the ads115 the triggering threshold is adjustable by adjusting the encoder but something is wrong it worked fine in the old version
if (aogSettings.ShaftEncoder)
{
SteeringWheelPressureReading = ads.readADC_SingleEnded(3);
SteeringWheelPressureReading = (SteeringWheelPressureReading >> 3); //bit shift by 3 0 to 3320 is 0 to 5v
if ((pulseCount >= aogSettings.PulseCountMax)||(SteeringWheelPressureReading >=(aogSettings.PulseCountMax100)))
{
steerSwitch = 1;
currentState = 1;
previous = HIGH;
new verssion
if (steerConfig.ShaftEncoder)
{
adc1.setMux(ADS1115_REG_CONFIG_MUX_SINGLE_3);
SteeringWheelPressureReading =adc1.getConversion();
adc1.triggerConversion();//ADS1115 Single Mode
SteeringWheelPressureReading = (SteeringWheelPressureReading >> 3); //bit shift by 3 0 to 3320 is 0 to 5v
if ((pulseCount >= steerConfig.PulseCountMax)||(SteeringWheelPressureReading >=(steerConfig.PulseCountMax
100)))
{
steerSwitch = 1;
currentState = 1;
previous = HIGH;
}
}