From 1bb76d7d3fe2e2bb5d0ac92d8f071fbfdec45b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 18 Mar 2017 21:13:25 +0100 Subject: [PATCH] Simplify JumpToBootloader() by only using the first method to reset the MCU. --- right/src/usb_protocol_handler.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index 91484b9..96c2aa8 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -112,10 +112,9 @@ void getSystemProperty() { } void jumpToBootloader() { - // We should reset the device here - SCB->AIRCR = (0x5FA<AIRCR = 0x05fA0002; // If the masked version doesn't work, this should also reset the core. - for(;;); + SCB->AIRCR = 0x5FA<AIRCR = 0x05fA0002; // If the masked version doesn't work, this should also reset the core. + for (;;); } void getSetTestLed()