Merge pull request #10014 from curzon01/development

Fix support for using multiple MAX31865 sensors
This commit is contained in:
Theo Arends 2020-11-29 17:53:51 +01:00 committed by GitHub
commit 2adfc6b425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),