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 fcc92cd commit de8a0f3Copy full SHA for de8a0f3
src/INA.cpp
@@ -701,7 +701,7 @@ int32_t INA_Class::getBusMicroAmps(const uint8_t deviceNumber) {
701
raw = raw >> 4;
702
} // if-then negative
703
704
- microAmps = ((int64_t)raw * (int64_t)ina.current_LSB) / 1000ULL;
+ microAmps = ((int64_t)raw * (int64_t)ina.current_LSB) / 1000LL;
705
break;
706
default:
707
microAmps = (int64_t)readWord(ina.currentRegister, ina.address) * (int64_t)ina.current_LSB /
0 commit comments