Project

General

Profile

Revision 180

Added by Greg Tress over 16 years ago

fixed a small error in motor set code

View differences:

trunk/code/projects/colonet/lib/colonet_dragonfly/colonet_dragonfly.c
194 194
      motors_init();
195 195
      break;
196 196
    case MOTOR1_SET:
197
      usb_puts("calling motor1_set\n");
198
      motor1_set(int_args[0], int_args[1]);
197
   	  sprintf(buf, "calling motor1_set [%i] [%i]\n", args[0], args[1]);
198
      usb_puts(buf);
199
      motor1_set(args[0], args[1]);
199 200
      break;
200 201
    case MOTOR2_SET:
201
      usb_puts("calling motor2_set\n");
202
      motor2_set(int_args[0], int_args[1]);
202
      sprintf(buf, "calling motor2_set [%i] [%i]\n", args[0], args[1]);
203
      usb_puts(buf);
204
      motor2_set(args[0], args[1]);
203 205
      break;
204 206
    case MOTORS_OFF:
205 207
      usb_puts("calling motors_off\n");
......
207 209
      break;
208 210
    case MOVE:
209 211
      buf[40];
210
      sprintf(buf, "calling move with: %d, %d\n", int_args[0], int_args[1]);
212
      sprintf(buf, "calling move with: %d, %d\n", args[0], args[1]);
211 213
      usb_puts(buf);
212 214
      move(args[0], args[1]);
213 215
      break;

Also available in: Unified diff