Skip to content

Commit

Permalink
Fixed what's-this problem with eph2tle.txt with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Sep 21, 2017
1 parent 6237c5e commit a56a401
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eph2tle.cpp
Expand Up @@ -590,7 +590,8 @@ int main( const int argc, const char **argv)
fprintf( ofile, "# Made by eph2tle, compiled " __DATE__ " " __TIME__ "\n");
fprintf( ofile, "# Run at %s#\n", ctime( &t0));
while( fgets_trimmed( buff, sizeof( buff), ifile))
fprintf( ofile, "%s\n", buff);
if( *buff != ';')
fprintf( ofile, "%s\n", buff);
fclose( ifile);
ifile = fopen( argv[1], "rb");
if( !ifile)
Expand Down
6 changes: 6 additions & 0 deletions eph2tle.txt
@@ -1,3 +1,9 @@
; Any line starting with ';' is treated as a comment. This file
; is read by 'eph2tle' (see 'eph2tle.cpp') as boilerplate to be put
; at the start of all TLE files.
;
;
;
# The following TLEs (Two-Line Elements) were generated by fitting
# a numerically-integrated ephemeris, based on the orbit given below,
# to the SDP4/SGP4 models. Each TLE is good for the interval between
Expand Down

0 comments on commit a56a401

Please sign in to comment.