Changeset 43 for trunk/firmware_v4/SES/src/mode_secondaryprotection.c
- Timestamp:
- Nov 3, 2026, 2:39:08 PM (28 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/firmware_v4/SES/src/mode_secondaryprotection.c
r42 r43 59 59 { 60 60 int faultInput; 61 int lvpAndOvpInput;61 //int lvpAndOvpInput; 62 62 63 63 if (HAL_GPIO_ReadPin(GPIO_INPUT_FAULT_GPIO_Port, GPIO_INPUT_FAULT_Pin) == GPIO_PIN_RESET) … … 72 72 if ((HAL_GPIO_ReadPin(GPIO_INPUT_LVP_GPIO_Port, GPIO_INPUT_LVP_Pin) == GPIO_PIN_SET) && (HAL_GPIO_ReadPin(GPIO_INPUT_OVP_GPIO_Port, GPIO_INPUT_OVP_Pin) == GPIO_PIN_SET)) 73 73 { 74 lvpAndOvpInput = 1;74 //lvpAndOvpInput = 1; 75 75 }else { 76 lvpAndOvpInput = 0;76 //lvpAndOvpInput = 0; 77 77 } 78 78 … … 130 130 static void SECONDARYPROTECTION_SM_On(void) 131 131 { 132 int faultInput = 0;132 //int faultInput = 0; 133 133 int lvpAndOvpInput = 0; 134 134 static int lvpAndOvpInputTimeCounter = 0; … … 137 137 if (HAL_GPIO_ReadPin(GPIO_INPUT_FAULT_GPIO_Port, GPIO_INPUT_FAULT_Pin) == GPIO_PIN_RESET) 138 138 { 139 faultInput = 1;139 //faultInput = 1; 140 140 RELAIS_ResetPuls(); 141 141 BUZZER_Beep(BUZZER_ON_TIME_REJECT); //Warnung … … 153 153 else 154 154 { 155 faultInput = 0;155 //faultInput = 0; 156 156 } 157 157 … … 294 294 { 295 295 int faultInput; 296 int lvpAndOvpInput;296 //int lvpAndOvpInput; 297 297 static uint32_t retry_counter = 0; 298 298 static uint32_t oldTimeMSTick;
Note:
See TracChangeset
for help on using the changeset viewer.
