Rev 362 | Rev 369 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 362 | Rev 368 | ||
---|---|---|---|
Line 159... | Line 159... | ||
159 | DebugOut.StatusGreen &= ~AMPEL_BL; // status of BL Present |
159 | DebugOut.StatusGreen &= ~AMPEL_BL; // status of BL Present |
160 | UART_VersionInfo.HardwareError[0] |= NC_ERROR0_SPI_RX; |
160 | UART_VersionInfo.HardwareError[0] |= NC_ERROR0_SPI_RX; |
161 | } |
161 | } |
162 | else if(CheckDelay(I2C1_Timeout)) |
162 | else if(CheckDelay(I2C1_Timeout)) |
163 | { |
163 | { |
164 | LED_RED_ON; |
164 | LED_RED_ON; |
165 | sprintf(ErrorMSG,"no compass communication "); |
165 | sprintf(ErrorMSG,"no compass communication"); |
166 | //Reset I2CBus |
166 | //Reset I2CBus |
167 | I2C1_Deinit(); |
167 | I2C1_Deinit(); |
168 | I2C1_Init(); |
168 | I2C1_Init(); |
169 | newErrorCode = 4; |
169 | newErrorCode = 4; |
170 | StopNavigation = 1; |
170 | StopNavigation = 1; |
Line 333... | Line 333... | ||
333 | newErrorCode = 26; |
333 | newErrorCode = 26; |
334 | DebugOut.StatusRed |= AMPEL_NC; |
334 | DebugOut.StatusRed |= AMPEL_NC; |
335 | } |
335 | } |
336 | else if((SD_LoggingError || (SD_WatchDog == 0)) && Parameter.GlobalConfig3 & CFG3_NO_SDCARD_NO_START ) |
336 | else if((SD_LoggingError || (SD_WatchDog == 0)) && Parameter.GlobalConfig3 & CFG3_NO_SDCARD_NO_START ) |
337 | { |
337 | { |
338 | LED_RED_ON; |
338 | LED_RED_ON; |
339 | sprintf(ErrorMSG,"ERR:SD Logging aborted"); |
339 | sprintf(ErrorMSG,"ERR:SD Logging aborted"); |
340 | newErrorCode = 27; |
340 | newErrorCode = 27; |
341 | DebugOut.StatusRed |= AMPEL_NC; |
341 | DebugOut.StatusRed |= AMPEL_NC; |
342 | SD_LoggingError = 0; |
342 | SD_LoggingError = 0; |
343 | } |
343 | } |