aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/General
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-06-11 15:06:31 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-06-11 15:06:31 +0300
commite5bd4aae30455510bdcdb492a34794c0747d7900 (patch)
tree7ba16d722cadb24428864545ca3f25552c2a0642 /Software/Embedded_SW/Embedded/Modules/General
parent4511fe25ffa1e4811ae822318c9a17109d5467e9 (diff)
downloadTango-e5bd4aae30455510bdcdb492a34794c0747d7900.tar.gz
Tango-e5bd4aae30455510bdcdb492a34794c0747d7900.zip
Version 1.4.6.31: init failures - stop init until new version loaded / FSE arrives. read / write main CPU data (embedded parameters); VOC read to diagnostics;
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/General')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c b/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c
index ae946ce1d..915869c34 100644
--- a/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c
+++ b/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c
@@ -397,12 +397,12 @@ uint32_t HWConfiguration(UploadHardwareConfigurationRequest* UploadRequest)
LOG_ERROR (0, "Wrong Data Allocation");
return ERROR;
}
- /*if (InitFailures > 3)
+ if (InitFailures > 3)
{
Report("HWConfigurationInit repeated failure",__FILE__,__LINE__,(int)InitFailures,RpWarning,(int)EEPROM_INIT_FAILURE_COUNTER,0);
- AlarmHandlingSetAlarm (EVENT_TYPE__MACHINE_STATE_HW_CONFIG_FAILED,ON);
+ AlarmHandlingSetAlarm (EVENT_TYPE__POWER_UP_BIT_FAILURE,ON);
return ERROR;
- }*/
+ }
HardwareConfiguration *request = UploadRequest->hardwareconfiguration;
@@ -628,14 +628,6 @@ uint32_t MidTankDataSetupFunc(MessageContainer* requestContainer)
b = Slope_B[i];
Report("MidTankData Read", __FILE__,__LINE__,(int)(a*1000), RpMessage, (int)(b*1000), 0);
}
- //debug only
- /*
- Task_sleep(1000);
- //MCU_E2PromSerialNumProgram ("Take me to the sky");
- memset (Serial,0,20);
- MCU_E2PromSerialNumRead(&Serial);
- Report(Serial, __FILE__,__LINE__,22, RpMessage, 21, 0);
- */
MidTankDataSetupResponse response = MID_TANK_DATA_SETUP_RESPONSE__INIT;