From 968c6c04167369f09d0fb317c40810f836905b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 20 Oct 2017 00:34:01 +0200 Subject: [PATCH] Call NVIC_SystemReset() instead of custom code. --- right/src/usb_protocol_handler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index d3c8042..d22d07d 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -73,8 +73,7 @@ void reenumerate(void) Wormhole.magicNumber = WORMHOLE_MAGIC_NUMBER; Wormhole.enumerationMode = GenericHidInBuffer[1]; Wormhole.timeoutMs = *((uint32_t*)(GenericHidInBuffer+2)); - SCB->AIRCR = 0x5FA<