<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#cccccc" text="#000000">
When building with Visual Studio I got a warning in
zeagle_n2ition3.c. The following code looks a bit suspicious to me.<br>
<br>
static device_status_t<br>
zeagle_n2ition3_init (zeagle_n2ition3_device_t *device)<br>
{<br>
unsigned char answer[6 + 13] = {0};<br>
unsigned char command[6] = {0x02, 0x01, 0x00, 0x41, 0xBF, 0x03};<br>
command[11] = ~checksum_add_uint8 (command + 3, 8, 0x00) + 1;<br>
<br>
return zeagle_n2ition3_packet (device, command, sizeof
(command), answer, sizeof (answer));<br>
}<br>
<br>
You are setting command[11] to a value when there are only 6
elements in command.<br>
<br>
</body>
</html>