GPS and SD card problem

It just count the receive buffer from microchip and clear it if some data are lost in that cycle.