We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ed9f6 commit 5cff6c0Copy full SHA for 5cff6c0
libraries/AP_HAL_ChibiOS/AnalogIn.cpp
@@ -761,6 +761,10 @@ void AnalogIn::_timer_tick(void)
761
// note min/max swap due to inversion
762
_mcu_voltage_min = 3.3 * VREFINT_CAL / float(_mcu_vrefint_max+0.001);
763
_mcu_voltage_max = 3.3 * VREFINT_CAL / float(_mcu_vrefint_min+0.001);
764
+
765
+ // reset min and max
766
+ _mcu_vrefint_max = 0;
767
+ _mcu_vrefint_min = 0;
768
}
769
#endif
770
0 commit comments