Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 641 → Rev 642

/trunk/waypoints.c
511,6 → 511,8
// write prefix
sprintf(wpline, "Prefix=%s\r\n", PointList[i].Name);
fputs_(wpline, fp);
sprintf(wpline, "AutoTrigger=%d\r\n", PointList[i].AutoPhotoDistance);
fputs_(wpline, fp);
} // EOF loop over all points
} // EOF if(PointCount)
if(EOF == fclose_(fp))
677,6 → 679,10
strncpy(PointList[IsPointSection-1].Name, value, 4);
PointList[IsPointSection-1].Name[3] = 0; // Terminate string
}
else if(strcmp(name, "AUTOTRIGGER") == 0)
{
PointList[IsPointSection-1].AutoPhotoDistance = (u8)atoi(value);
}
else
{
UART1_PutString("Unknown key: ");