X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=6605d1e6c321f6fe5be8998d65a4799a5594cce3;hp=9531d0b03f08fc943faf516b1ae2ade1fc78e931;hb=464d12c72aa8d83acccccbbc0bc755fbb9d542c0;hpb=2d83e0f963b39104ba065c61ef22456adcf15a8d diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 9531d0b0..6605d1e6 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -102,6 +102,18 @@ static const char *pattern_strings[] = { NULL, }; +static const char *probe_names[NUM_PROBES + 1] = { + "0", + "1", + "2", + "3", + "4", + "5", + "6", + "7", + NULL, +}; + static uint8_t pattern_sigrok[] = { 0x4c, 0x92, 0x92, 0x92, 0x64, 0x00, 0x00, 0x00, 0x82, 0xfe, 0xfe, 0x82, 0x00, 0x00, 0x00, 0x00, @@ -185,6 +197,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: info = &samplerates; break;