uchar buf[9];
int i;
- if (strlen(key) != 16) {
+ if (strlen((char*)key) != 16) {
fprintf(stderr, "Bad key length %s\n", key);
return 0;
}
ANT_SetNetworkKey(uchar net, uchar *key)
{
uchar buf[9];
- int i;
buf[0] = net;
memcpy(buf+1, key, 8);
uchar buf[9];
int i;
- if (strlen(data) != 16) {
+ if (strlen((char*)data) != 16) {
fprintf(stderr, "Bad data length %s\n", data);
return 0;
}
ANT_SendAcknowledgedData(uchar chan, uchar *data)
{
uchar buf[9];
- int i;
buf[0] = chan;
memcpy(buf+1, data, 8);
int seq = 0;
if (dbg) fprintf(stderr, "numpkts %d data %s\n", numpkts, data);
- if (strlen(data) != 16*numpkts) {
+ if (strlen((char*)data) != 16*numpkts) {
fprintf(stderr, "Bad data length %s numpkts %d\n", data, numpkts);
return 0;
}
ANT_SendBurstTransfer(uchar chan, uchar *data, ushort numpkts)
{
uchar buf[9];
- int i;
int j;
int seq = 0;
static int sentgetv;
static char *fname = "garmin";
-static char ANTSPT_KEY[] = "A8A423B9F55E63C1"; // ANT+Sport key
+static uchar ANTSPT_KEY[] = "A8A423B9F55E63C1"; // ANT+Sport key
static uchar ebuf[MESG_DATA_SIZE]; // response event data gets stored here
static uchar cbuf[MESG_DATA_SIZE]; // channel event data gets stored here