Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 487 → Rev 488

/Riddim/riddim.c
323,12 → 323,19
case STATEID_CONNECTING:
 
 
 
confirm_misses=0;
 
RxBuffer[2]=0;
if (connected)
while (RxBuffer[2]!='B')
{
read_from_mk();
if (RxBuffer[2]=='B')
complete_misses++;
/*while (RxBuffer[2]!='B')
{
 
RxBuffer[1]=0;
read_from_mk();
344,13 → 351,13
// r=0;
 
// new
/*
if (button_trigger[12]>1)
{
SendOutData('s', 0, (unsigned char *)&ExternControl, sizeof(ExternControl));
button_trigger[12]=0;
}
*/
//if (button_trigger[12]>1)
// {
// SendOutData('s', 0, (unsigned char *)&ExternControl, sizeof(ExternControl));
// button_trigger[12]=0;
// }
ExternControl.Frame='t';
if (++confirm_misses>4)
{
358,10 → 365,11
printf("sending again\n");
SendOutData('b', 0, (unsigned char *)&ExternControl, sizeof(ExternControl));
}
*/
}
else
printf("not connected to mk\n");
 
gettimeofday(&time_struct2,NULL);
 
printf("last trip: %d\n",(int)(time_struct2.tv_usec-time_struct1.tv_usec));