invert Circulation Pump GPIO
This commit is contained in:
		| @ -75,7 +75,7 @@ Sntp <|-- Metrics | ||||
|  | ||||
| | Function                              | ESP32 | PLC ES32C14               | | ||||
| |---------------------------------------|-------|---------------------------| | ||||
| | Output CirculationPump                | IO27  | Relay 1 NO1               | | ||||
| | Output CirculationPump                | IO27  | Relay 1 NC1               | | ||||
| | Output Burner Fire Signal             | IO14  | Relay 2 NC2               | | ||||
| | Output Safety Contact (powers Burner) | IO12  | Relay 3 NC2               | | ||||
| | Input Burner Fault                    | IO19  | Digital Input IN1         | | ||||
|  | ||||
| @ -66,10 +66,10 @@ void setCirculationPumpState(eOutput in) | ||||
|         switch (sCirculationPumpState) | ||||
|         { | ||||
|         case ENABLED: | ||||
|             gpio_set_level(uCirculationPumpGpioPin, 1U); // Switch on Circulation Pump | ||||
|             gpio_set_level(uCirculationPumpGpioPin, 0U); // Switch on Circulation Pump | ||||
|             break; | ||||
|         case DISABLED: | ||||
|             gpio_set_level(uCirculationPumpGpioPin, 0U); // Switch off Circulation Pump | ||||
|             gpio_set_level(uCirculationPumpGpioPin, 1U); // Switch off Circulation Pump | ||||
|         default: | ||||
|             break; | ||||
|         } | ||||
| @ -133,6 +133,7 @@ eOutput getSafetyControlState(void) | ||||
|     } | ||||
|     return ret; | ||||
| } | ||||
|  | ||||
| void setSafetyControlState(eOutput in) | ||||
| { | ||||
|     if (xSemaphoreTakeRecursive(xMutexAccessOutputs, pdMS_TO_TICKS(5000)) == pdTRUE) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user