/trunk/i2c.c |
---|
609,6 → 609,7 |
default:// unknown event |
// should never happen |
DebugOut.Analog[14]++; |
I2C_GenerateSTOP (I2C1, ENABLE); |
VIC_ITCmd(I2C1_ITLine, DISABLE); |
I2C1_Bus.State = I2C_STATE_IDLE; |
633,7 → 634,10 |
if(pBus == NULL) return(0); |
while(pBus->State != I2C_STATE_IDLE) |
{ |
if(CheckDelay(time)) return(0); |
if(CheckDelay(time)) // Timeout |
{ |
return(0); |
} |
} |
return(1); |
} |
/trunk/ncmag.c |
---|
1229,7 → 1229,7 |
else // nothing found |
{ |
NCMAG_SensorType = TYPE_NONE; |
UART1_PutString("not found!"); |
UART1_PutString(" not found!"); |
} |
} |
return(NCMAG_Present); |