Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for "Planetary Camera" in ZWO model name #4046

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ function get_connected_cameras_info()
{
if ($1 == "Bus" && $3 == "Device") {
ZWO = $7;
# Check for "ZWOptical company" instead of ZWO on some older cameras
if (ZWO == "ZWOptical" && $8 == "company") {
model = $9;
model_cont = 10;
Expand All @@ -326,7 +327,12 @@ function get_connected_cameras_info()
}
if (model != "") {
# The model may have multiple tokens.
for (i=model_cont; i<= NF; i++) model = model " " $i
for (i=model_cont; i<= NF; i++) {
# Check for "ASI120 Planetary Camera" on some older cameras.
if ($i == "Planetary")
break;
model = model " " $i;
}
printf("ZWO\t%d\t%s\n", num++, model);
model = "<found>"; # This camera was output
}
Expand Down
Loading