diff --git a/keyboards/handwired/onekey/stm32_mini_v2/board.h b/keyboards/handwired/onekey/stm32_mini_v2/board.h
index 6895c574ed4..51932c5bbca 100644
--- a/keyboards/handwired/onekey/stm32_mini_v2/board.h
+++ b/keyboards/handwired/onekey/stm32_mini_v2/board.h
@@ -13,6 +13,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+#pragma once
#include_next
diff --git a/keyboards/handwired/onekey/stm32_mini_v2/info.json b/keyboards/handwired/onekey/stm32_mini_v2/info.json
index d252a98a271..c728ec50ef1 100644
--- a/keyboards/handwired/onekey/stm32_mini_v2/info.json
+++ b/keyboards/handwired/onekey/stm32_mini_v2/info.json
@@ -2,7 +2,6 @@
"keyboard_name": "Onekey STM32 Mini v2 STM32F103RC",
"processor": "STM32F103",
"bootloader": "stm32duino",
- "board": "STM32_F103_STM32DUINO",
"matrix_pins": {
"cols": ["B0"],
"rows": ["B1"]
diff --git a/keyboards/handwired/onekey/stm32_mini_v2/rules.mk b/keyboards/handwired/onekey/stm32_mini_v2/rules.mk
index 2c6a6783330..0a82d53fb30 100644
--- a/keyboards/handwired/onekey/stm32_mini_v2/rules.mk
+++ b/keyboards/handwired/onekey/stm32_mini_v2/rules.mk
@@ -1,5 +1,5 @@
# Bootloader selection
-MCU_LDSCRIPT = STM32F103xC_stm32duino
+MCU_LDSCRIPT = STM32F103xC
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE