diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-04-27 09:32:40 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-04-27 09:32:40 +0300 |
| commit | b3d005773db01537b831ae523224aaf124202fb7 (patch) | |
| tree | b09d852584e87139905bb77e5455b6a6dc49d0f2 /Software/Visual_Studio/Tango.Emulations/Emulators | |
| parent | e3435feb84231a97cc766a5f884c8aba5a1df919 (diff) | |
| download | Tango-b3d005773db01537b831ae523224aaf124202fb7.tar.gz Tango-b3d005773db01537b831ae523224aaf124202fb7.zip | |
Attempt to fix auto update check.
Fixed emulator ink consumption calc.
Diffstat (limited to 'Software/Visual_Studio/Tango.Emulations/Emulators')
| -rw-r--r-- | Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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<int>(); + 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) |
