From 64c88753aee1bbfeee00f9eeb5c561b839873f8d Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 5 Jul 2016 20:48:04 -0400 Subject: driver: added --debug support. --- src/driver/ptyc_driver_ctx.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/driver') diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index d403a98..e21e7ab 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -193,6 +193,20 @@ int ptyc_get_driver_ctx( case TAG_VERSION: cctx.drvflags |= PTYC_DRIVER_VERSION; break; + + case TAG_DEBUG: + if (!entry->arg) + cctx.drvflags |= PTYC_DRIVER_DBG_EVENT; + + else if (!strcmp("event",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DBG_EVENT; + + else if (!strcmp("oven",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DBG_OVEN; + + else if (!strcmp("raw",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DBG_RAW; + break; } } else nunits++; -- cgit v1.2.3