From fa212e3bf33d5d6ee463daf986060d92e217826b Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sat, 19 Feb 2022 14:12:19 +0100 Subject: [PATCH] feed dots --- Instructions/FeedInstruction.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Instructions/FeedInstruction.cs b/Instructions/FeedInstruction.cs index 0967abf..ee2a611 100644 --- a/Instructions/FeedInstruction.cs +++ b/Instructions/FeedInstruction.cs @@ -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 GetInstructions() { var commands = new List(); - commands.Add(e.FeedLines(lines)); + if (lines > 0){ + commands.Add(e.FeedLines(lines)); + } + + if (dots > 0){ + commands.Add(e.FeedDots(dots)); + } return commands; }