Rev 231 | Rev 234 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 231 | Rev 232 | ||
---|---|---|---|
Line 150... | Line 150... | ||
150 | 150 | ||
151 | void CheckErrors(void) |
151 | void CheckErrors(void) |
152 | { |
152 | { |
Line 153... | Line -... | ||
153 | UART_VersionInfo.HardwareError[0] = 0; |
- | |
154 | 153 | UART_VersionInfo.HardwareError[0] = 0; |
|
155 | 154 | ||
Line 156... | Line 155... | ||
156 | if((MK3MAG_Version.Compatible != MK3MAG_I2C_COMPATIBLE) || (CheckDelay(I2C1_Timeout)) || (MK3MAG_Version.Compatible != MK3MAG_I2C_COMPATIBLE) || (I2C_Heading.Heading < 0)) DebugOut.Status[1] |= 0x08; |
155 | if((MK3MAG_Version.Compatible != MK3MAG_I2C_COMPATIBLE) || CheckDelay(I2C1_Timeout) || (I2C_Heading.Heading < 0)) DebugOut.Status[1] |= 0x08; |
157 | else DebugOut.Status[1] &= ~0x08; // MK3Mag green status |
156 | else DebugOut.Status[1] &= ~0x08; // MK3Mag green status |
Line 298... | Line 297... | ||
298 | sprintf(ErrorMSG,"No Error "); |
297 | sprintf(ErrorMSG,"No Error "); |
299 | ErrorCode = 0; |
298 | ErrorCode = 0; |
300 | StopNavigation = 0; |
299 | StopNavigation = 0; |
301 | LED_RED_OFF; |
300 | LED_RED_OFF; |
302 | } |
301 | } |
303 | if(UART_VersionInfo.HardwareError[0] || UART_VersionInfo.HardwareError[1] || UART_VersionInfo.HardwareError[0]) DebugOut.Status[1] |= 0x04; |
302 | if(UART_VersionInfo.HardwareError[0] || UART_VersionInfo.HardwareError[1]) DebugOut.Status[1] |= 0x04; |
304 | else DebugOut.Status[1] &= ~0x04; |
303 | else DebugOut.Status[1] &= ~0x04; |
305 | } |
304 | } |
Line 306... | Line 305... | ||
306 | 305 | ||
307 | // the handler will be cyclic called by the timer 1 ISR |
306 | // the handler will be cyclic called by the timer 1 ISR |