ilabs-flir 2.1.32 → 2.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -819,6 +819,9 @@ extension FlirManager: FLIRStreamDelegate {
|
|
|
819
819
|
if let image = streamer.getImage() {
|
|
820
820
|
_latestImage = image
|
|
821
821
|
|
|
822
|
+
// Update shared state for native preview
|
|
823
|
+
FlirState.shared().updateFrame(image)
|
|
824
|
+
|
|
822
825
|
// Get temperature from thermal image (use runtime selectors to be resilient across SDK versions)
|
|
823
826
|
streamer.withThermalImage { [weak self] thermalImage in
|
|
824
827
|
var tempVal: Double = Double.nan
|
|
@@ -836,6 +839,7 @@ extension FlirManager: FLIRStreamDelegate {
|
|
|
836
839
|
}
|
|
837
840
|
if !tempVal.isNaN {
|
|
838
841
|
self?.lastTemperature = tempVal
|
|
842
|
+
FlirState.shared().lastTemperature = tempVal
|
|
839
843
|
}
|
|
840
844
|
}
|
|
841
845
|
|