feed dots

This commit is contained in:
Djeeberjr 2022-02-19 14:12:19 +01:00
parent 6cd67cf00f
commit fa212e3bf3

View File

@ -1,11 +1,18 @@
public class FeedInstruction : BaseInstruction
{
public int lines {get; set; } = 1;
public int lines {get; set; } = 0;
public int dots {get; set; } = 0;
public override List<byte[]> GetInstructions()
{
var commands = new List<byte[]>();
commands.Add(e.FeedLines(lines));
if (lines > 0){
commands.Add(e.FeedLines(lines));
}
if (dots > 0){
commands.Add(e.FeedDots(dots));
}
return commands;
}