XC-8 Problen?
One of the groups said that there was a ltobcd routine. The answer was very complete and I tried it and couldn't get it to work. So I tried to post on the MC board and it of course was screwing up as it is more than half the time.
When I compile I get the error: "Converter.c:21: warning: (361) function declared implicit int"
I take this to mean that it cannot find the function. Any ideas?
- Code: Select all
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
extern void ltoBCD( long Value, char *pBCD); // returns a 5byte array
int Display_Convert(long input_data) {
char *char_ptr = &Display_Buff;
ltobcd(input_data, char_ptr);
}
When I compile I get the error: "Converter.c:21: warning: (361) function declared implicit int"
I take this to mean that it cannot find the function. Any ideas?