Rev 360 | Rev 378 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 360 | Rev 362 | ||
---|---|---|---|
Line 132... | Line 132... | ||
132 | 132 | ||
Line 133... | Line 133... | ||
133 | u8 retvalue = 1; |
133 | u8 retvalue = 1; |
Line 134... | Line 134... | ||
134 | 134 | ||
135 | if(doc == NULL) return(0); |
135 | if(doc == NULL) return(0); |
136 | 136 | ||
137 | while(doc->state != GPX_DOC_CLOSED) // close linestring, placemark and document before closing the file on the memorycard |
137 | while(doc->state != GPX_DOC_CLOSED && (SD_WatchDog)) // close linestring, placemark and document before closing the file on the memorycard |
138 | { |
138 | { |
139 | switch(doc->state) |
139 | switch(doc->state) |
Line 465... | Line 465... | ||
465 | //________________________________________________________________________________________________________________________________________ |
465 | //________________________________________________________________________________________________________________________________________ |
Line 466... | Line 466... | ||
466 | 466 | ||
467 | u8 GPX_LoggGPSCoordinates(GPX_Document_t *doc,unsigned char part) |
467 | u8 GPX_LoggGPSCoordinates(GPX_Document_t *doc,unsigned char part) |
468 | { |
468 | { |
469 | u8 retval = 0; |
469 | u8 retval = 0; |
470 | while(doc->state != GPX_DOC_TRACKSEGMENT_OPENED) // automatic create document with default filename on the card. |
470 | while(doc->state != GPX_DOC_TRACKSEGMENT_OPENED && (SD_WatchDog)) // automatic create document with default filename on the card. |
471 | { |
471 | { |
472 | switch(doc->state) |
472 | switch(doc->state) |
473 | { |
473 | { |
474 | case GPX_DOC_CLOSED: // document hasn't been opened yet therefore it will be initialized automatically |
474 | case GPX_DOC_CLOSED: // document hasn't been opened yet therefore it will be initialized automatically |