ao-test-igniter: allow anything other than 'open' to be valid so LED tests work tm-ublox10
authorBdale Garbee <bdale@gag.com>
Mon, 28 Aug 2023 17:44:40 +0000 (11:44 -0600)
committerBdale Garbee <bdale@gag.com>
Mon, 28 Aug 2023 17:44:40 +0000 (11:44 -0600)
ao-tools/ao-test-igniter/ao-test-igniter.c

index 180defdb441a436af5a850d731bcee79cee95c3f..16ff27f45359755450b0f01e439cdc556ae6188f 100644 (file)
@@ -195,7 +195,7 @@ do_igniter(struct cc_usb *usb, char *name, double rplus, double rminus, int adc_
                        return 0;
                }
        }
-       if (strcmp(this->status, "ready") != 0) {
+       if (strcmp(this->status, "open") == 0) {
                printf("igniter %s status is %s\n", this->name, this->status);
                free_igniters(all);
                return 0;