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");