Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made changes to enable high power output #5

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
7 changes: 6 additions & 1 deletion src/screen/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ class Main : public Screen {
if (_preset.is_standby()) return;

int power = _heating.get_power_mw();
int len = power * 15 / 40000;
int len = power * 15 / 40000; // default for 40W power limit

/* account for 150W power limit of RTU tips */
if (_heating.getTipType() == Heating::TipType::TRU) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRU - RTU ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was a typo. I fixed it in my code, but couldn't figure out how to correct it in here. That's why I was opening and closing the pull requests... 🤦🏻‍♂️

len = power * 15 / 150000;
}

if (len == 0 && power > 0) len = 1;
if (len > 15) len = 15;
Expand Down