Skip to content
Snippets Groups Projects
Commit 817aa551 authored by Thomas Oster's avatar Thomas Oster
Browse files

Make Marlin Power range from 0 to 100. Fixes t-oster/VisiCut#330

parent c3e4fb4e
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,12 @@ public class Marlin extends GenericGcodeDriver {
return null;
}
@Override
protected void setPower(double powerInPercent)
{
//marlin interprets power from 0-100 instead of 0-1
super.setPower(powerInPercent*100);
}
@Override
public String getModelName()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment