I am getting a: symbol ‘FIRE_DELAYS’ has multiple definitions
Now the problem is, FIRE_DELAYS is only refrenced two places in my code. they are:
------ fire_control.h -------
#ifndef __fire_control_h_
#define __fire_control_h_
...
const unsigned char FIRE_DELAYS] =
{75, /*FIRING*/
200, /*RETRACTING*/
500}; /*LOADING*/
...
#endif
------ fire control.c -------
#include "fire_control.h"
void FireControl(void){
...
if(i < FIRE_DELAYS[fireState -1]){
...
}
...
}
Am i just totally overlooking something really obvious, or is the linker behaving oddly.