GPS: fix compile warning for NMEA logging

This commit is contained in:
Randy Mackay 2015-07-29 16:51:34 +09:00
parent d2f7c21eb3
commit 04f7a07bad

View File

@ -130,7 +130,7 @@ bool AP_GPS_NMEA::read(void)
if (logf == NULL) {
logf = fopen(NMEA_LOG_PATH, "wb");
}
if (c >= 0 && logf != NULL) {
if (logf != NULL) {
::fwrite(&c, 1, 1, logf);
}
#endif