X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fkorad-kaxxxxp%2Fapi.c;h=a0a75c13e942434dae89c4f684808b088728de5f;hb=3308450089c41c8596404e89c95f9a9620c3404f;hp=dbd1afa36e82e36a0e2ff0c08cfc5fd26092551c;hpb=3f9b48ae5f35a6814da073200eb1f55379353fbd;p=libsigrok.git diff --git a/src/hardware/korad-kaxxxxp/api.c b/src/hardware/korad-kaxxxxp/api.c index dbd1afa3..a0a75c13 100644 --- a/src/hardware/korad-kaxxxxp/api.c +++ b/src/hardware/korad-kaxxxxp/api.c @@ -55,8 +55,23 @@ static const struct korad_kaxxxxp_model models[] = { /* Sometimes the KA3005P has an extra 0x01 after the ID. */ {KORAD_KA3005P_0X01, "Korad", "KA3005P", "KORADKA3005PV2.0\x01", 1, {0, 31, 0.01}, {0, 5, 0.001}}, + /* Sometimes the KA3005P has an extra 0xBC after the ID. */ + {KORAD_KA3005P_0XBC, "Korad", "KA3005P", + "KORADKA3005PV2.0\xBC", 1, {0, 31, 0.01}, {0, 5, 0.001}}, {KORAD_KD3005P, "Korad", "KD3005P", "KORAD KD3005P V2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, + {KORAD_KD3005P_V20_NOSP, "Korad", "KD3005P", + "KORADKD3005PV2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, + {RND_320K30PV, "RND", "KA3005P", + "RND 320-KA3005P V2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, + {TENMA_72_2540_V20, "Tenma", "72-2540", + "TENMA72-2540V2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}}, + {TENMA_72_2540_V21, "Tenma", "72-2540", + "TENMA 72-2540 V2.1", 1, {0, 31, 0.01}, {0, 5, 0.001}}, + {TENMA_72_2535_V21, "Tenma", "72-2535", + "TENMA 72-2535 V2.1", 1, {0, 31, 0.01}, {0, 3, 0.001}}, + {STAMOS_SLS31_V20, "Stamos Soldering", "S-LS-31", + "S-LS-31 V2.0", 1, {0, 31, 0.01}, {0, 5.1, 0.001}}, ALL_ZERO }; @@ -118,7 +133,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sr_dbg("Received: %d, %s", i, reply); model_id = -1; for (i = 0; models[i].id; i++) { - if (!strcmp(models[i].id, reply)) + if (!g_strcmp0(models[i].id, reply)) model_id = i; } if (model_id < 0) {