added usb detection for dfu and watchdog process