aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/General
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-09-16 18:22:51 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-09-16 18:22:51 +0300
commitbf91c4fdf69848e929c2a20f52fb21b5df119b03 (patch)
tree9a2b4a00a363b8d35c84e757cbe92063774d9b26 /Software/Embedded_SW/Embedded/Modules/General
parent161fe6f6d2b29ba3deb641cdc049ad0d8f58004e (diff)
downloadTango-bf91c4fdf69848e929c2a20f52fb21b5df119b03.tar.gz
Tango-bf91c4fdf69848e929c2a20f52fb21b5df119b03.zip
new magnet handling
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/General')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c b/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c
index 95327e45d..2dcc65087 100644
--- a/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c
+++ b/Software/Embedded_SW/Embedded/Modules/General/GeneralHardware.c
@@ -130,6 +130,11 @@ uint32_t HWConfigurationInit(void)
if (status !=OK)
{
SetMachineState(MACHINE_STATE_HW_CONFIG_FAILED);
+ STATUS_GREEN_LED_OFF;
+ }
+ else
+ {
+ STATUS_RED_LED_OFF;
}
upload_hardware_configuration_request__free_unpacked(UploadRequest,NULL);
}
@@ -143,7 +148,6 @@ uint32_t HWConfigurationInit(void)
ADC_MUX_Init();
GeneralHwReady = true;
- STATUS_RED_LED_OFF;
return status;
}