From 6f9b3255bc243dabe8b347afacd2429e89659187 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Thu, 6 Jul 2023 20:39:53 -0500 Subject: [PATCH] Update ASI_functions.cpp --- src/ASI_functions.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ASI_functions.cpp b/src/ASI_functions.cpp index bfbfc10f0..2bb203089 100644 --- a/src/ASI_functions.cpp +++ b/src/ASI_functions.cpp @@ -961,11 +961,14 @@ void saveCameraInfo(ASI_CAMERA_INFO cameraInfo, char const *file, int width, int fprintf(f, "\t\t},\n"); } if (CG.supportsTemperature) { - fprintf(f, "\t\t{\n"); - fprintf(f, "\t\t\t\"Name\" : \"%s\",\n", "supportsSensorTemperature"); - fprintf(f, "\t\t\t\"argumentName\" : \"%s\",\n", "supportssensortemperature"); - fprintf(f, "\t\t\t\"DefaultValue\" : 1\n"); - fprintf(f, "\t\t},\n"); + // RPi only supports sensor temp with libcamera. + if (CG.ct == ctZWO || CG.isLibcamera) { + fprintf(f, "\t\t{\n"); + fprintf(f, "\t\t\t\"Name\" : \"%s\",\n", "supportsSensorTemperature"); + fprintf(f, "\t\t\t\"argumentName\" : \"%s\",\n", "supportssensortemperature"); + fprintf(f, "\t\t\t\"DefaultValue\" : 1\n"); + fprintf(f, "\t\t},\n"); + } fprintf(f, "\t\t{\n"); // TODO This will go away when the legacy overlay is removed fprintf(f, "\t\t\t\"Name\" : \"%s\",\n", "showTemp");