Zanduino / INA

Combined Arduino library for reading multiple INA2xx power monitor devices
GNU General Public License v3.0
158 stars 41 forks source link

Copy & paste error in Wiki #80

Closed michael-brade closed 3 years ago

michael-brade commented 3 years ago

Hi, this is just to point out a copy&paste error. Here:

https://github.com/Zanduino/INA/wiki/alertOnBusOverVoltage()

In the second paragraph, it says: "...millivolts for the shunt voltage". It should be "bus voltage".

And the example has:

INA.alertOnBusOverVoltage(true;5000);

should be (true, 5000);, not a semicolon.

Thanks for a great library :-)

michael-brade commented 3 years ago

Actually, while I'm at it: INA.cpp, line 902:

...when the bus current goes aboe...

should be

...when the bus voltage goes above...
SV-Zanshin commented 3 years ago

Both errors corrected -thanks!

michael-brade commented 3 years ago

Thanks, but I don't think so :stuck_out_tongue_closed_eyes:

The first issue in the wiki still says "shunt voltage" instead of "bus voltage" in the second paragraph.

Actually, looking at the alert pages, they all say:

The state will remain set until the voltage on the shunt goes below the threshold limit.

But the *Under-pages should say "goes above" and the shunt needs to be replaced with bus or power.

And all the alertOn*Voltage-wiki pages have the ; after the true.

Second issue had the typo that you fixed, but that wasn't the important bit -- it was s/current/voltage/, and it still says current instead of voltage in INA.cpp, line 902.

SV-Zanshin commented 3 years ago

I missed this one until now. I've updated the files to reflect the correct program code in the Wiki and comments in the source code.