]> sigrok.org Git - libsigrok.git/commitdiff
hp-59306a: Rename channel groups from CHn to Rn
authorFrank Stettner <redacted>
Sat, 7 Aug 2021 17:22:04 +0000 (19:22 +0200)
committerFrank Stettner <redacted>
Sat, 14 Aug 2021 18:24:55 +0000 (20:24 +0200)
Also fix the long name in the sr_dev_driver struct

src/hardware/hp-59306a/api.c

index 76ea8d7e2952199157c9f01f7049e0dcc5d8e1c4..c7a0afca5b2ad34d11309313754c0aa0a5fbb45e 100644 (file)
@@ -75,7 +75,7 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
                nr = idx + 1;
 
                cg = g_malloc0(sizeof(*cg));
-               cg->name = g_strdup_printf("CH%zu", nr);
+               cg->name = g_strdup_printf("R%zu", nr);
 
                cgc = g_malloc0(sizeof(*cgc));
                cgc->number = nr;
@@ -183,7 +183,7 @@ static int config_list(uint32_t key, GVariant **data,
 
 static struct sr_dev_driver hp_59306a_driver_info = {
        .name = "hp-59306a",
-       .longname = "hp-59306a",
+       .longname = "HP 59306A",
        .api_version = 1,
        .init = std_init,
        .cleanup = std_cleanup,