commit: 25fb4a498a4b6e8436e528edd502bda46fd2c464
parent 6f3b494a4d8a28696743e977f677e6a247dbe392
Author: Geoffrey Frogeye <s+github@frogeye.fr>
Date: Fri, 28 Mar 2025 10:19:07 +0100
Allow AnnePro2 to reboot (#24886)
Without this, the QK_REBOOT key did nothing.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/keyboards/annepro2/annepro2.c b/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();