Rev 248 | Rev 254 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 248 | Rev 252 | ||
---|---|---|---|
Line 155... | Line 155... | ||
155 | } |
155 | } |
Line 156... | Line 156... | ||
156 | 156 | ||
157 | //---------------------------------------------------------------- |
157 | //---------------------------------------------------------------- |
158 | void MK3MAG_SendCommand(u8 command) |
158 | void MK3MAG_SendCommand(u8 command) |
159 | { |
159 | { |
160 | // If I2C no transmission is in progress |
160 | // trya to catch the I2C buffer |
161 | if(I2C_LockBuffer(0)) |
161 | if(I2C_LockBuffer(0)) |
162 | { |
162 | { |
163 | u16 TxBytes = 0; |
163 | u16 TxBytes = 0; |
164 | u16 RxBytes = 0; |
164 | u16 RxBytes = 0; |