Skip to content

Commit

Permalink
Update ASI_functions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jul 7, 2023
1 parent e693939 commit 6f9b325
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/ASI_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6f9b325

Please sign in to comment.