msoon / PyMonsoon

Monsoon Power Monitor Python Library
MIT License
55 stars 23 forks source link

Set current limit bug while using LVPM #39

Open ku121ma opened 1 year ago

ku121ma commented 1 year ago

As per the title, a typo exists in LVPM.py that triggers a runtime error. The function raw_from_amps is defined in LVPM.py, but __raw_from_amps is incorrectly referenced in setPowerUpCurrentLimit and setRunTimeCurrentLimit.

https://github.com/msoon/PyMonsoon/blob/master/Monsoon/LVPM.py#L69 https://github.com/msoon/PyMonsoon/blob/master/Monsoon/LVPM.py#L74