Skip to content

Commit 06b9e40

Browse files
πŸ§‘β€πŸ’» Use MAX31865 flag (MarlinFirmware#26574)
Co-authored-by: Scott Lahteine <[email protected]>
1 parent 7603023 commit 06b9e40

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

β€ŽMarlin/src/pins/stm32f4/pins_BTT_OCTOPUS_PRO_V1_0.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
//
2727
// Temperature Sensors
2828
//
29-
#if TEMP_SENSOR_0 == -5
29+
#define TEMP_0_PIN PF4 // TH0
30+
31+
#if TEMP_SENSOR_0_IS_MAX31865
3032
#define TEMP_0_CS_PIN PF8 // Max31865 CS
3133
#define TEMP_0_SCK_PIN PA5
3234
#define TEMP_0_MISO_PIN PA6
3335
#define TEMP_0_MOSI_PIN PA7
3436
#define SOFTWARE_SPI // Max31865 and LCD SD share a set of SPIs, Set SD to softwareSPI for Max31865
3537
#define FORCE_SOFT_SPI
36-
#else
37-
#define TEMP_0_PIN PF4 // TH0
3838
#endif
3939

4040
#if !defined(Z_MIN_PROBE_PIN) && DISABLED(BLTOUCH)

β€ŽMarlin/src/pins/stm32h7/pins_BTT_OCTOPUS_PRO_V1_common.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,18 @@
214214
// Temperature Sensors
215215
//
216216
#define TEMP_BED_PIN PF3 // TB
217+
#define TEMP_0_PIN PF4 // TH0
217218
#define TEMP_1_PIN PF5 // TH1
218219
#define TEMP_2_PIN PF6 // TH2
219220
#define TEMP_3_PIN PF7 // TH3
220221

221-
#if TEMP_SENSOR_0 == -5
222+
#if TEMP_SENSOR_0_IS_MAX31865
222223
#define TEMP_0_CS_PIN PF8 // Max31865 CS
223224
#define TEMP_0_SCK_PIN PA5
224225
#define TEMP_0_MISO_PIN PA6
225226
#define TEMP_0_MOSI_PIN PA7
226227
#define SOFTWARE_SPI // Max31865 and LCD SD share a set of SPIs, Set SD to softwareSPI for Max31865
227228
#define FORCE_SOFT_SPI
228-
#else
229-
#define TEMP_0_PIN PF4 // TH0
230229
#endif
231230

232231
//

0 commit comments

Comments
Β (0)