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

LAOS power workaround

parent 713747b5
No related branches found
No related tags found
No related merge requests found
...@@ -303,6 +303,13 @@ public class LaosCutter extends LaserCutter ...@@ -303,6 +303,13 @@ public class LaosCutter extends LaserCutter
{ {
if (currentPower != power) if (currentPower != power)
{ {
if (currentPower == -1)
{
//Workaround. There seems to be a bug in LAOS, which causes the first
//Power line to be ignored. Thus we send it twice
//see http://http://redmine.laoslaser.org/issues/63
out.printf("7 101 %d\n", (int) (power * 100));
}
out.printf("7 101 %d\n", (int) (power * 100)); out.printf("7 101 %d\n", (int) (power * 100));
currentPower = power; currentPower = power;
} }
......
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