Skip to content

Commit

Permalink
Update ASI_functions.cpp: minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Aug 14, 2023
1 parent dc9b7fe commit 49cb28a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ASI_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ void saveCameraInfo(ASI_CAMERA_INFO cameraInfo, char const *file, int width, int
fprintf(f, "\t\t{ \"value\" : %d, \"label\" : \"%dx%d\" }", b, b, b);
}
fprintf(f, "\t],\n");

// RPi only supports sensor temp with libcamera.
if (CG.ct == ctZWO || CG.isLibcamera)
fprintf(f, "\t\"hasSensorTemperature\" : %s,\n", CG.supportsTemperature ? "true" : "false");
Expand All @@ -856,7 +856,7 @@ void saveCameraInfo(ASI_CAMERA_INFO cameraInfo, char const *file, int width, int
fprintf(f, "\t\t{ \"value\" : 180, \"label\" : \"180 degrees\" },\n");
fprintf(f, "\t\t{ \"value\" : 270, \"label\" : \"270 degrees\" }\n");
}
fprintf(f, "\t],\n");;
fprintf(f, "\t],\n");
#endif

fprintf(f, "\t\"supportedImageFormats\": [\n");
Expand Down Expand Up @@ -963,8 +963,8 @@ void saveCameraInfo(ASI_CAMERA_INFO cameraInfo, char const *file, int width, int
fprintf(f, "\t\t\t\"DefaultValue\" : 0\n");
fprintf(f, "\t\t},\n");
}
if (CG.supportsTemperature) {
fprintf(f, "\t\t{\n"); // TODO This will go away when the legacy overlay is removed
if (CG.supportsTemperature) {
fprintf(f, "\t\t{\n");
fprintf(f, "\t\t\t\"Name\" : \"%s\",\n", "showTemp");
fprintf(f, "\t\t\t\"argumentName\" : \"%s\",\n", "showTemp");
fprintf(f, "\t\t\t\"DefaultValue\" : %d\n", CG.overlay.showTemp ? 1 : 0);
Expand Down

0 comments on commit 49cb28a

Please sign in to comment.