Change-Id: Ibfedc191cacd558a89969fd048a06ee53a4f7a32
int ret;
ret = peripheral_uart_close(uart_hndl);
- if (ret < 0 ) {
+ if (ret < 0) {
_E("GPS Uart Port Close failed !!");
return FALSE;
}
int ret;
ret = peripheral_uart_open(GPS_UART_PORT, &uart_hndl);
- if (ret < 0 ) {
+ if (ret < 0) {
_E("GPS Uart Port Open failed !!");
return FALSE;
}
break;
} else {
strncpy(nmea_data + strlen(nmea_data), buf, strlen(buf) - 1);
- }
+ }
}
timer->nmea_data->len = strlen(buf);
timer->nmea_data->data = buf;