1185,6 → 1185,7 |
{ |
NCMAG_SensorType = TYPE_LSM303D; |
NCMAG_ConfigureSensor(); |
NCMAG_Compass_use_Orientation = 1; |
retval = 1; |
} |
else |
1199,8 → 1200,16 |
if(!retval) |
{ |
// search internal sensor afterwards |
if(UART_VersionInfo.HWMajor >= 30) UART1_PutString(" main I2C-Bus "); |
else UART1_PutString(" internal sensor "); |
if(UART_VersionInfo.HWMajor >= 30) |
{ |
UART1_PutString(" main I2C-Bus "); |
NCMAG_Compass_use_Orientation = 1; |
} |
else |
{ |
UART1_PutString(" internal sensor "); |
NCMAG_Compass_use_Orientation = 0; |
} |
Compass_I2CPort = NCMAG_PORT_INTERN; |
} |
else |
1207,6 → 1216,7 |
{ |
UART1_PutString(" external sensor "); |
Compass_I2CPort = NCMAG_PORT_EXTERN; |
NCMAG_Compass_use_Orientation = 1; |
} |
//------------------------------------------- |
NCMAG_Present = 0; |
1316,6 → 1326,7 |
{ |
sprintf(msg, "\n\r Warning: calibrated orientation was %d !",Calibration.Version >> 4); |
UART1_PutString(msg); |
//NCMAG_IsCalibrated = 0; // force new calibration! |
} |
} |
} |