GPS data logger with SD card and Mega

Looking at the TinyGPS example called "Test with GPS device" . I tried to find all the parts that need work, hopefully I found it all.

Here is the part that determines serial input;

static bool feedgps()
{
  while (nss.available())
  {
    if (gps.encode(nss.read()))
      return true;
  }
  return false;
}

Change to this:

static bool feedgps()
{
  while (Serial1.available())
  {
    if (gps.encode(Serial1.read()))
      return true;
  }
  return false;
}

Remove this:

SoftwareSerial nss(3, 4);

Change this;

nss.begin(4800);

To this:

Serial1.begin(4800);