Rev 338 | Rev 340 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 338 | Rev 339 | ||
---|---|---|---|
Line 107... | Line 107... | ||
107 | if(doc->file != NULL) // could the file be opened? |
107 | if(doc->file != NULL) // could the file be opened? |
108 | { |
108 | { |
109 | retvalue = 1; // the document could be created on the drive. |
109 | retvalue = 1; // the document could be created on the drive. |
110 | doc->state = GPX_DOC_OPENED; // change document state to opened. At next a placemark has to be opened. |
110 | doc->state = GPX_DOC_OPENED; // change document state to opened. At next a placemark has to be opened. |
111 | fwrite_((void*)GPX_DOCUMENT_HEADER1, sizeof(GPX_DOCUMENT_HEADER1)-1,1,doc->file);// write the gpx-header to the document. |
111 | fwrite_((void*)GPX_DOCUMENT_HEADER1, sizeof(GPX_DOCUMENT_HEADER1)-1,1,doc->file);// write the gpx-header to the document. |
112 | sprintf(string, "<desc>FC HW:%d.%d SW:%d.%d%c & NC HW:%d.%d SW:%d.%d%c</desc>\r\n", FC_Version.Hardware/10,FC_Version.Hardware%10, FC_Version.Major, FC_Version.Minor, 'a'+FC_Version.Patch, Version_HW/10, Version_HW%10, VERSION_MAJOR, VERSION_MINOR, 'a'+ VERSION_PATCH); |
112 | sprintf(string, "<desc>FC HW:%d.%d SW:%d.%d%c + NC HW:%d.%d SW:%d.%d%c</desc>\r\n", FC_Version.Hardware/10,FC_Version.Hardware%10, FC_Version.Major, FC_Version.Minor, 'a'+FC_Version.Patch, Version_HW/10, Version_HW%10, VERSION_MAJOR, VERSION_MINOR, 'a'+ VERSION_PATCH); |
113 | fputs_(string, doc->file); |
113 | fputs_(string, doc->file); |
114 | fwrite_((void*)GPX_DOCUMENT_HEADER2, sizeof(GPX_DOCUMENT_HEADER2)-1,1,doc->file);// write the gpx-header to the document. |
114 | fwrite_((void*)GPX_DOCUMENT_HEADER2, sizeof(GPX_DOCUMENT_HEADER2)-1,1,doc->file);// write the gpx-header to the document. |
115 | } |
115 | } |
116 | Logging_FCStatusFlags1 = 0; |
116 | Logging_FCStatusFlags1 = 0; |
117 | Logging_FCStatusFlags2 = 0; |
117 | Logging_FCStatusFlags2 = 0; |