Fixed hallsensors.c

typedef struct was declared after it was initialised