Rev 292 | Rev 321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 292 | Rev 312 | ||
---|---|---|---|
Line 732... | Line 732... | ||
732 | && (NCMAG_Identification.C == MAG_IDC)) |
732 | && (NCMAG_Identification.C == MAG_IDC)) |
733 | { |
733 | { |
734 | NCMAG_Present = 1; |
734 | NCMAG_Present = 1; |
735 | if(!NCMAG_SelfTest()) |
735 | if(!NCMAG_SelfTest()) |
736 | { |
736 | { |
737 | UART1_PutString(" Selftest failed!"); |
737 | UART1_PutString(" Selftest failed!!!!!!!!!!!!!!!!!!!!"); |
738 | LED_RED_ON; |
738 | LED_RED_ON; |
739 | NCMAG_IsCalibrated = 0; |
739 | NCMAG_IsCalibrated = 0; |
740 | } |
740 | } |
741 | else |
741 | else |
742 | { |
742 | { |
743 | if(EEPROM_Init()) |
743 | if(EEPROM_Init()) |
744 | { |
744 | { |
745 | NCMAG_IsCalibrated = NCMag_CalibrationRead(); |
745 | NCMAG_IsCalibrated = NCMag_CalibrationRead(); |
746 | if(!NCMAG_IsCalibrated) UART1_PutString("\r\n Not calibrated!"); |
746 | if(!NCMAG_IsCalibrated) UART1_PutString("\r\n Not calibrated!"); |
747 | } |
747 | } |
748 | else UART1_PutString("\r\n Calibration data not available!"); |
748 | else UART1_PutString("\r\n Calibration data not available!!!!!!!!!!!!!!!"); |
749 | } |
749 | } |
750 | } |
750 | } |
751 | else |
751 | else |
752 | { |
752 | { |
753 | UART1_PutString("\n\r Not compatible!"); |
753 | UART1_PutString("\n\r Not compatible!"); |