Change addData(Frame_t *frame, int type, int data)