Read to NULL is not legal.

This commit is contained in:
Ben Laurie
2013-09-08 06:08:51 +01:00
parent dfe4469e2c
commit c37b9aed4c
+2 -1
View File
@@ -124,7 +124,8 @@ int navdata_init()
void acquire_baro_calibration()
{
read(nav_fd, NULL, 100); // read some potential dirt
char tmp[100];
read(nav_fd, tmp, sizeof tmp); // read some potential dirt
// start baro calibration acquisition
uint8_t cmd=0x17; // send cmd 23