diff options
| author | Ronen Sberlo <ronen.s@twine-s.com> | 2020-11-25 14:29:23 +0200 |
|---|---|---|
| committer | Ronen Sberlo <ronen.s@twine-s.com> | 2020-11-25 14:29:23 +0200 |
| commit | ea830b7194f085771a6172de7b889208030555ab (patch) | |
| tree | 0a8ccd0d3b57609f9b626a7649a015ec6fdb7b00 /Software/Embedded_SW/Embedded/StateMachines | |
| parent | 4ebd3a2a882be8211f15f0b5003e00272571d2e8 (diff) | |
| download | Tango-ea830b7194f085771a6172de7b889208030555ab.tar.gz Tango-ea830b7194f085771a6172de7b889208030555ab.zip | |
remove unused code
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines')
| -rw-r--r-- | Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c index a71afc4cd..565c590f6 100644 --- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c +++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/InitSequence.c @@ -465,44 +465,7 @@ uint32_t InitSequenceWHSAirFlowCalibration(void) return OK; } -uint32_t InitSequenceArcAirflowCalibration(void) -{ - uint32_t V0[2] = {0, 0}; - if (ResetReason & SYSCTL_CAUSE_POR) { - V0[0] = PressureSensorInit(0); - V0[1] = PressureSensorInit(1); - ReportWithPackageFilter(InitFilter,"read pressure sensor v0[0],v0[1]", __FILE__,__LINE__, (int)V0[0], RpMessage, (int)V0[1], 0); - if ((V0[0] > 1000) && (V0[0] < 1200)) { - MCU_E2PromProgram(EEPROM_PRESSURE_SENSOR_V0_0, V0[0]); - ReportWithPackageFilter(InitFilter,"store pressure sensor v0[0]", __FILE__,__LINE__, (int)V0[0], RpMessage, 0, 0); - } else { - MCU_E2PromRead(EEPROM_PRESSURE_SENSOR_V0_0, &V0[0]); - ReportWithPackageFilter(InitFilter,"load from EEPROM", __FILE__,__LINE__, (int)V0[0], RpMessage, 0, 0); - } - if ((V0[1] > 1000) && (V0[1] < 1200)) { - MCU_E2PromProgram(EEPROM_PRESSURE_SENSOR_V0_1, V0[1]); - ReportWithPackageFilter(InitFilter,"store pressure sensor v0[1]", __FILE__,__LINE__, (int)V0[1], RpMessage, 0, 0); - } else { - MCU_E2PromRead(EEPROM_PRESSURE_SENSOR_V0_1, &V0[1]); - ReportWithPackageFilter(InitFilter,"load from EEPROM", __FILE__,__LINE__, (int)V0[1], RpMessage, 0, 0); - } - } else { - MCU_E2PromRead(EEPROM_PRESSURE_SENSOR_V0_0, &V0[0]); - MCU_E2PromRead(EEPROM_PRESSURE_SENSOR_V0_1, &V0[1]); - ReportWithPackageFilter(InitFilter,"load initial values from EEPROM", __FILE__,__LINE__, (int)V0[0], RpMessage, (int)V0[1], 0); - } - if ((V0[0] > 1000) && (V0[0] < 1200)) { - PressureSensorV0[0] = V0[0]; - } else { - PressureSensorV0[0] = 1100; - } - if ((V0[1] > 1000) && (V0[1] < 1200)) { - PressureSensorV0[1] = V0[1]; - } else { - PressureSensorV0[1] = 1100; - } - return OK; -} + uint32_t InitSequenceInitialBlowerActivation(void) { WHS_enable_control_loop(false); |
