mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 05:42:49 +08:00
Use constants consistently.
This commit is contained in:
@@ -263,7 +263,7 @@ void navdata_update()
|
|||||||
navdata_read();
|
navdata_read();
|
||||||
|
|
||||||
// while there is something interesting to do...
|
// while there is something interesting to do...
|
||||||
while (port.bytesRead >= 60)
|
while (port.bytesRead >= NAVDATA_PACKET_SIZE)
|
||||||
{
|
{
|
||||||
if (port.buffer[0] == NAVDATA_START_BYTE)
|
if (port.buffer[0] == NAVDATA_START_BYTE)
|
||||||
{
|
{
|
||||||
@@ -292,7 +292,7 @@ void navdata_update()
|
|||||||
// printf("CCRC=%d, GCRC=%d, error=%d\n", crc, navdata->chksum, abs(crc-navdata->chksum));
|
// printf("CCRC=%d, GCRC=%d, error=%d\n", crc, navdata->chksum, abs(crc-navdata->chksum));
|
||||||
//navdata_getHeight();
|
//navdata_getHeight();
|
||||||
}
|
}
|
||||||
navdata_CropBuffer(60);
|
navdata_CropBuffer(NAVDATA_PACKET_SIZE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user