[hal] Fix REVPH Analog Pressure channel selection (#3716)

This commit is contained in:
Vasista Vovveti
2021-11-10 20:22:18 -06:00
committed by GitHub
parent 4d78def31e
commit a3954a9fa3

View File

@@ -319,7 +319,7 @@ double HAL_GetREVPHAnalogPressure(HAL_REVPHHandle handle, int32_t channel,
return 0;
}
if (channel == 1) {
if (channel == 0) {
return PH_status0_analog_0_decode(status0.analog_0);
}
return PH_status0_analog_1_decode(status0.analog_1);