Add set_error_threshold() to ckps2ch.c unit