Răsfoiți Sursa

Allow AnnePro2 to reboot (#24886)

Without this, the QK_REBOOT key did nothing.
Geoffrey Frogeye 1 an în urmă
părinte
comite
25fb4a498a
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      keyboards/annepro2/annepro2.c

+ 5 - 0
keyboards/annepro2/annepro2.c

@@ -48,6 +48,11 @@ ble_capslock_t ble_capslock = {._dummy = {0}, .caps_lock = false};
 static uint8_t led_enabled = 1;
 #endif
 
+void mcu_reset(void) {
+    __disable_irq();
+    NVIC_SystemReset();
+}
+
 void bootloader_jump(void) {
     // Send msg to shine to boot into IAP
     ap2_set_IAP();