🩹 Fix MCU check for STM32H7-based BTT Octopus Pro V1 (#26831)

* 🩹 Fix MCU check for STM32H7-based BTT Octopus Pro V1

Co-authored-by: ellensp <530024+ellensp@users.noreply.github.com>

* Update Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h

---------

Co-authored-by: ellensp <530024+ellensp@users.noreply.github.com>
This commit is contained in:
Keith Bennett
2024-04-07 12:05:35 -07:00
committed by GitHub
parent 2bf56b00d4
commit a3434de2e6

View File

@@ -21,7 +21,13 @@
*/
#pragma once
#include "env_validate.h"
// The Octopus Pro V1 has shipped with both STM32F4 and STM32H7 MCUs.
// Ensure the correct env_validate.h file is included based on the build environment used.
#if NOT_TARGET(STM32H7)
#include "env_validate.h"
#else
#include "../stm32h7/env_validate.h"
#endif
#define HAS_OTG_USB_HOST_SUPPORT // USB Flash Drive support
#define USES_DIAG_JUMPERS