Rev 945 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 945 | Rev 957 | ||
---|---|---|---|
Line 211... | Line 211... | ||
211 | } |
211 | } |
212 | else |
212 | else |
213 | { // data to last motor send |
213 | { // data to last motor send |
214 | motor_write = 0; // reset motor write counter |
214 | motor_write = 0; // reset motor write counter |
215 | } |
215 | } |
216 | I2C_Start(); // Repeated start -> switch salve or switch Master Transmit -> Master Receive |
216 | I2C_Start(); // Repeated start -> switch slave or switch Master Transmit -> Master Receive |
217 | break; |
217 | break; |
218 | // Master Receive |
218 | // Master Receive |
219 | case 3: // Send SLA-R |
219 | case 3: // Send SLA-R |
220 | I2C_WriteByte(0x53 + (motor_read * 2) ); |
220 | I2C_WriteByte(0x53 + (motor_read * 2) ); |
221 | break; |
221 | break; |