Skip to content

Commit

Permalink
馃┕ Fix MCU check for STM32H7-based BTT Octopus Pro V1 (#26831)
Browse files Browse the repository at this point in the history
* 馃┕ 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>
  • Loading branch information
thisiskeithb and ellensp committed Apr 7, 2024
1 parent 2bf56b0 commit a3434de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h
Expand Up @@ -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
Expand Down

0 comments on commit a3434de

Please sign in to comment.