diff --git a/headers/gp2040.h b/headers/gp2040.h index dd9f9fbc8c..8329044e52 100644 --- a/headers/gp2040.h +++ b/headers/gp2040.h @@ -53,9 +53,9 @@ class GP2040 { }; struct BootAction { - BootActionType type; - InputMode inputMode; - uint32_t profileNumber; + BootActionType type = BootActionType::SET_INPUT_MODE; + InputMode inputMode = INPUT_MODE_XINPUT; + uint32_t profileNumber = 0; }; BootAction getGpioMappedBootAction(); diff --git a/src/gp2040.cpp b/src/gp2040.cpp index b87fe05df7..7df379c4e2 100644 --- a/src/gp2040.cpp +++ b/src/gp2040.cpp @@ -140,7 +140,6 @@ void GP2040::setup() { } InputMode inputMode = bootAction.inputMode; - uint32_t profile = bootAction.profileNumber; // Setup USB Driver DriverManager::getInstance().setup(inputMode);