mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-02 07:27:42 +00:00
Commented USE_SPI and USE_MAX31865 by default. Fixed bad struct member usage.
This commit is contained in:
parent
b372731651
commit
509b9c6dea
@ -384,7 +384,7 @@
|
|||||||
#endif // USE_I2C
|
#endif // USE_I2C
|
||||||
|
|
||||||
// -- SPI sensors ---------------------------------
|
// -- SPI sensors ---------------------------------
|
||||||
#define USE_SPI // Hardware SPI using GPIO12(MISO), GPIO13(MOSI) and GPIO14(CLK) in addition to two user selectable GPIOs(CS and DC)
|
//#define USE_SPI // Hardware SPI using GPIO12(MISO), GPIO13(MOSI) and GPIO14(CLK) in addition to two user selectable GPIOs(CS and DC)
|
||||||
|
|
||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
#ifndef USE_DISPLAY
|
#ifndef USE_DISPLAY
|
||||||
@ -427,13 +427,12 @@
|
|||||||
|
|
||||||
//#define USE_MAX31855 // Add support for MAX31855 K-Type thermocouple sensor using softSPI
|
//#define USE_MAX31855 // Add support for MAX31855 K-Type thermocouple sensor using softSPI
|
||||||
|
|
||||||
#define USE_MAX31865 // Add support for MAX31865 RTD sensors using softSPI
|
//#define USE_MAX31865 // Add support for MAX31865 RTD sensors using softSPI
|
||||||
|
|
||||||
#ifdef USE_MAX31865
|
#ifdef USE_MAX31865
|
||||||
#define MAX31865_PTD_WIRES 2 // PTDs come in several flavors. Pick yours
|
#define MAX31865_PTD_WIRES 2 // PTDs come in several flavors. Pick yours
|
||||||
#define MAX31865_PTD_RES 100 // Nominal PTD resistance at 0°C (100Ω for a PT100, 1000Ω for a PT1000, YMMV!)
|
#define MAX31865_PTD_RES 100 // Nominal PTD resistance at 0°C (100Ω for a PT100, 1000Ω for a PT1000, YMMV!)
|
||||||
#define MAX31865_REF_RES 430 // Reference resistor (Usually 430Ω for a PT100, 4300Ω for a PT1000)
|
#define MAX31865_REF_RES 430 // Reference resistor (Usually 430Ω for a PT100, 4300Ω for a PT1000)
|
||||||
#define MAX31865_PTD_BIAS -6.6 // To calibrate your not-so-good PTD
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// -- IR Remote features --------------------------
|
// -- IR Remote features --------------------------
|
||||||
|
@ -90,7 +90,7 @@ void MAX31865_Show(bool Json){
|
|||||||
#endif // USE_DOMOTICZ
|
#endif // USE_DOMOTICZ
|
||||||
#ifdef USE_KNX
|
#ifdef USE_KNX
|
||||||
if (0 == tele_period) {
|
if (0 == tele_period) {
|
||||||
KnxSensor(KNX_TEMPERATURE, MAX31865_Result.Max31865.PtdTemp);
|
KnxSensor(KNX_TEMPERATURE, MAX31865_Result.PtdTemp);
|
||||||
}
|
}
|
||||||
#endif // USE_KNX
|
#endif // USE_KNX
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user