View Single Post
  #12   Spotlight this post!  
Unread 15-04-2006, 00:05
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Can't get auto mode to run with OI switches

Quote:
Originally Posted by kiettyyyy
See, i moved the int declarations and that other stuff.. and moved it up to the top of the user_routines.c

int currentauto;
int newautoselect;
unsigned int autopos;
unsigned int temp_autopos;
int autocount;



Now in user_routines_fast.c,

extern unsigned char currentauto;
extern unsigned char newautoselect;

WHAT IS WRONG!!?!?!
You have a type miss-match between your extern declarations
and the definitions in user_routines.c You need them to be
consistent. If you put the extern declarations in a common header
file that is also included in user_routines.c the compiler will catch
this sort of error for you.