getShuntMicroVolts() calls getShuntRaw() which checks the device mode and triggers a conversion if appropriate.
However, after this call, getShuntMicroVolts() proceeds to also check device mode and trigger a conversion if appropriate. This results in 2 conversions being requested instead of 1.
getBusMilliVolts() seems to do this properly. It calls getBusRaw() which triggers the conversion, and does NOT try to trigger a conversion itself.
getShuntMicroVolts()
callsgetShuntRaw()
which checks the device mode and triggers a conversion if appropriate.However, after this call,
getShuntMicroVolts()
proceeds to also check device mode and trigger a conversion if appropriate. This results in 2 conversions being requested instead of 1.getBusMilliVolts()
seems to do this properly. It callsgetBusRaw()
which triggers the conversion, and does NOT try to trigger a conversion itself.