]> sigrok.org Git - libsigrok.git/commitdiff
Change type of SR_CONF_CONTINUOUS from SR_T_UINT64 to SR_T_BOOL
authorDiego Asanza <redacted>
Fri, 6 May 2016 22:07:00 +0000 (00:07 +0200)
committerUwe Hermann <redacted>
Mon, 16 May 2016 16:18:58 +0000 (18:18 +0200)
SR_CONF_CONTINUOUS is used to check if a device supports continuous sampling
or not. As such, the type boolean is better suited.

Signed-off-by: Diego Asanza <redacted>
src/hwdriver.c

index 1a502ca8cc37146b7409bf1f22d07ad4ba69eac6..0c668e059e36dc4be51598fccc5fec0f9a9cc987 100644 (file)
@@ -199,7 +199,7 @@ static struct sr_key_info sr_key_info_config[] = {
                "Sample limit", NULL},
        {SR_CONF_LIMIT_FRAMES, SR_T_UINT64, "limit_frames",
                "Frame limit", NULL},
-       {SR_CONF_CONTINUOUS, SR_T_UINT64, "continuous",
+       {SR_CONF_CONTINUOUS, SR_T_BOOL, "continuous",
                "Continuous sampling", NULL},
        {SR_CONF_DATALOG, SR_T_BOOL, "datalog",
                "Datalog", NULL},