From 7d1f9b4d4c8fb1ed8bb1bda6e4c40bf4010c0573 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 23 Feb 2021 16:30:43 +0100 Subject: [PATCH] fix nome last image (static var) --- Thermo.Active.Core/ThreadsFunctions.cs | 4 ++-- Thermo.Active.NC/NcAdapter.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Thermo.Active.Core/ThreadsFunctions.cs b/Thermo.Active.Core/ThreadsFunctions.cs index be559e9c..f9f6e27d 100644 --- a/Thermo.Active.Core/ThreadsFunctions.cs +++ b/Thermo.Active.Core/ThreadsFunctions.cs @@ -352,8 +352,8 @@ public static class ThreadsFunctions // if requested --> give ack! ncAdapter.ManageFlirStrobe(); // requesto photo from library - ncAdapter.lastThermoImage = TCCom.takePicture(); - done = !string.IsNullOrEmpty(ncAdapter.lastThermoImage); + NcAdapter.lastThermoImage = TCCom.takePicture(); + done = !string.IsNullOrEmpty(NcAdapter.lastThermoImage); if (done) { // init diff --git a/Thermo.Active.NC/NcAdapter.cs b/Thermo.Active.NC/NcAdapter.cs index 49034447..cf4083b9 100644 --- a/Thermo.Active.NC/NcAdapter.cs +++ b/Thermo.Active.NC/NcAdapter.cs @@ -117,7 +117,7 @@ namespace Thermo.Active.NC /// /// ultima immagine scattata dalla thermocam x salvataggio in PROD /// - public string lastThermoImage = "_last"; + public static string lastThermoImage = "_last"; /// /// Avvio prod lotto