From b3d005773db01537b831ae523224aaf124202fb7 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 27 Apr 2021 09:32:40 +0300 Subject: Attempt to fix auto update check. Fixed emulator ink consumption calc. --- .../Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/Tango.Emulations') diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs index a4639f874..ab007329f 100644 --- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs +++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs @@ -832,6 +832,8 @@ namespace Tango.Emulations.Emulators nextStopPosition = jobTicket.Segments[seg_index + 1].Length; } + calculatedStopIndexes = new List(); + for (int index = 0; index < segment.BrushStops.Count(); index++) { var stop = segment.BrushStops[index]; @@ -885,10 +887,10 @@ namespace Tango.Emulations.Emulators foreach (var packLevel in MachineStatus.IDSPacksLevels) { - Debug.WriteLine($"packLevel.DispenserLevel = {packLevel.DispenserLevel}"); - Debug.WriteLine($"quantity = {130000000 - packLevel.DispenserLevel}"); - Debug.WriteLine($"packLevel.Index = {packLevel.Index}"); + Debug.WriteLine($"Emulator: Pack Index = {packLevel.Index}"); + Debug.WriteLine($"Emulator: Quantity = {MachineOperator.MAX_DISPENSER_NANOLITER - packLevel.DispenserLevel}"); } + jobTicket = null; if (_cancelJob) -- cgit v1.3.1