From 4014436208e7c161c9fff90102f23287e4adea0a Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Sun, 29 Nov 2020 17:26:23 +0100 Subject: [PATCH] Fix support for using multiple MAX31865 sensors --- tasmota/xsns_47_max31865.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xsns_47_max31865.ino b/tasmota/xsns_47_max31865.ino index de67a737e..4c45af4fe 100644 --- a/tasmota/xsns_47_max31865.ino +++ b/tasmota/xsns_47_max31865.ino @@ -53,7 +53,7 @@ void MAX31865_Init(void) { for (uint32_t i = 0; i < MAX_MAX31865S; i++) { if (PinUsed(GPIO_SSPI_MAX31865_CS1, i)) { max31865_pins_used |= 1 << i; //set lowest bit - max31865[0].setPins( + max31865[i].setPins( Pin(GPIO_SSPI_MAX31865_CS1, i), Pin(GPIO_SSPI_MOSI), Pin(GPIO_SSPI_MISO),