Subversion Repositories FlightCtrl

Rev

Rev 2418 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2418 Rev 2426
Line 328... Line 328...
328
                I2C_TransferActive = 0;
328
                I2C_TransferActive = 0;
329
                                return;
329
                                return;
330
                        }
330
                        }
331
                        twi_state = 6; // if there are some bytes left
331
                        twi_state = 6; // if there are some bytes left
332
                        break;
332
                        break;
333
 
333
/*
334
                // writing Gyro-Offsets
334
                // writing Gyro-Offsets
335
                case 18:
335
                case 18:
336
                        I2C_WriteByte(0x98); // Address the DAC
336
                        I2C_WriteByte(0x98); // Address the DAC
337
                        break;
337
                        break;
Line 373... Line 373...
373
                        {
373
                        {
374
                                dac_channel = 0; // reset dac channel counter
374
                                dac_channel = 0; // reset dac channel counter
375
                                BLFlags |= BLFLAG_TX_COMPLETE;
375
                                BLFlags |= BLFLAG_TX_COMPLETE;
376
                        }
376
                        }
377
                        break;
377
                        break;
-
 
378
*/
378
        default:
379
        default:
379
                        I2C_Stop(TWI_STATE_MOTOR_TX);
380
                        I2C_Stop(TWI_STATE_MOTOR_TX);
380
                        BLFlags |= BLFLAG_TX_COMPLETE;
381
                        BLFlags |= BLFLAG_TX_COMPLETE;
381
                        I2CTimeout = 10;
382
                        I2CTimeout = 10;
382
                        motor_write = 0;
383
                        motor_write = 0;