return -1;
}
#else
int RIDEPET_getPETindex( int PetNo, unsigned int learnCode )
{
int i;
for( i=0; i< sizeof(RideCodeMode)/sizeof(tagRideCodeMode); i++ ){
if( RideCodeMode.petNo == PetNo &&
(RideCodeMode.learnCode & learnCode) ) {
return i;
}
}
return -1;
}
#endif
int RIDEPET_getRIDEno( int index, int ti)
{
if( index < 0 || index >= sizeof( RideNoList)/sizeof( tagRideNoList) )
return -1;
if( ti < 0 || ti >= MAXNOINDEX )
return -1;