diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index cf9b170..7b0b596 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -205,17 +205,21 @@ int ptyc_get_driver_ctx( break; case TAG_DEBUG: - if (!entry->arg) + if (!entry->arg) { cctx.drvflags |= PTYC_DRIVER_DBG_EVENT; - else if (!strcmp("event",entry->arg)) + } else if (!strcmp("event",entry->arg)) { cctx.drvflags |= PTYC_DRIVER_DBG_EVENT; - else if (!strcmp("oven",entry->arg)) + } else if (!strcmp("oven",entry->arg)) { + cctx.drvflags &= ~(uint64_t)PTYC_DRIVER_DBG_RAW; cctx.drvflags |= PTYC_DRIVER_DBG_OVEN; - else if (!strcmp("raw",entry->arg)) + } else if (!strcmp("raw",entry->arg)) { + cctx.drvflags &= ~(uint64_t)PTYC_DRIVER_DBG_OVEN; cctx.drvflags |= PTYC_DRIVER_DBG_RAW; + } + break; case TAG_CAT: