···5151#include "gui/skin_engine/skin_engine.h"
5252#endif
53535454+#if defined(IPOD_ACCESSORY_PROTOCOL)
5555+#include "iap.h"
5656+#endif
5757+5458/* Conditions under which we want the entire driver */
5559#if !defined(BOOTLOADER) || \
5660 (defined(HAVE_USBSTACK) && defined(HAVE_BOOTLOADER_USB_MODE)) || \
···520524521525 if(usb_state == USB_POWERED || usb_state == USB_INSERTED)
522526 usb_stack_enable(false);
527527+528528+#ifdef IPOD_ACCESSORY_PROTOCOL
529529+ iap_reset_state(0);
530530+#endif
523531524532 /* Only disable the USB slave mode if we really have enabled
525533 it. Some expected acks may not have been received. */