some modifcation for deep sleep debug. To merge with USB dongle firmware