CDEV_FLAG_IN_CONTROL
ptdata.cdi[k].flag |= CDEV_FLAG_IN_CONTROL;
if (ptdata.cdi[i].flag & CDEV_FLAG_IN_CONTROL) {