Skip to content

Commit

Permalink
Small syntax correction
Browse files Browse the repository at this point in the history
  • Loading branch information
softsr committed Mar 15, 2013
1 parent 5520afa commit e7c1ba3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sw/airborne/subsystems/actuators/actuators_mkk.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ void actuators_mkk_set(void) {
#endif

static uint8_t last_idx = ACTUATORS_MKK_NB;
uint8_t cur_idx = last_idx;
uint8_t cur_idx = last_idx;
for (uint8_t i=0; i<ACTUATORS_MKK_NB; i++) {
#ifdef KILL_MOTORS
actuators_mkk.trans[i].buf[0] = 0;
#endif
if(cur_idx >= ACTUATORS_MKK_NB)
cur_idx = 0;
cur_idx = 0;
if (!i2c_submit(&ACTUATORS_MKK_DEVICE, &actuators_mkk.trans[cur_idx])) {
last_idx = cur_idx;
return;
}
cur_idx++;
last_idx = cur_idx;
return;
}
cur_idx++;
}
last_idx = ACTUATORS_MKK_NB;
last_idx = ACTUATORS_MKK_NB;
}

0 comments on commit e7c1ba3

Please sign in to comment.