Update app_ptp.c