X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fchronovu-la8%2Fchronovu-la8.c;h=cfca8e3dea36d467bfef1edadc7fbf5bf5a49aa7;hb=ae32d7d759f5722f9d82a2da8ec4bbdebcfd029b;hp=478df4853ff2e875c0bea2cea3a37733f8297944;hpb=b7f09cf86dd57a59dc1bdece2cac9e4a176900b1;p=libsigrok.git diff --git a/hardware/chronovu-la8/chronovu-la8.c b/hardware/chronovu-la8/chronovu-la8.c index 478df485..cfca8e3d 100644 --- a/hardware/chronovu-la8/chronovu-la8.c +++ b/hardware/chronovu-la8/chronovu-la8.c @@ -41,6 +41,18 @@ static GSList *device_instances = NULL; +static const char *probe_names[NUM_PROBES + 1] = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + NULL, +}; + struct la8 { /** FTDI device context (used by libftdi). */ struct ftdi_context *ftdic; @@ -726,6 +738,9 @@ static void *hw_get_device_info(int device_index, int device_info_id) case SR_DI_NUM_PROBES: info = GINT_TO_POINTER(NUM_PROBES); break; + case SR_DI_PROBE_NAMES: + info = probe_names; + break; case SR_DI_SAMPLERATES: fill_supported_samplerates_if_needed(); info = &samplerates; @@ -991,7 +1006,7 @@ static int receive_data(int fd, int revents, void *session_data) (void)revents; if (!(sdi = session_data)) { - sr_err("la8: %s: user_data was NULL", __func__); + sr_err("la8: %s: session_data was NULL", __func__); return FALSE; }