Skip to content

Commit

Permalink
Allow config / pins to set TEMP_SOC_PIN
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 8, 2023
1 parent 989ec9d commit 4bfe64b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Marlin/src/HAL/STM32/temp_soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
*/
#pragma once

// Using STM32 SoC temp sensor (TEMP_SENSOR_SOC) requires TEMP_SOC_PIN ATEMP.
#ifndef TEMP_SOC_PIN
#define TEMP_SOC_PIN ATEMP
#endif

#ifdef STM32F0xx
/*
STM32F030x4 STM32F030x6 STM32F030x8 STM32F030xC https://www.st.com/resource/en/datasheet/stm32f030f4.pdf
Expand Down
5 changes: 5 additions & 0 deletions Marlin/src/pins/pins_postprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@
#define TEMP_BED_PIN -1
#endif

// Use ATEMP if TEMP_SOC_PIN is not defined
#if !defined(TEMP_SOC_PIN) && defined(ATEMP)
#define TEMP_SOC_PIN ATEMP
#endif

#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN -1
#endif
Expand Down

0 comments on commit 4bfe64b

Please sign in to comment.