added a couple comment lines to top of generated calibration files
This commit is contained in:
parent
1a67e3d7af
commit
09db44185b
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <comedilib.h>
|
||||
|
||||
|
@ -93,7 +94,11 @@ int write_calibration_perl_hash( FILE *file, comedi_t *dev,
|
|||
saved_calibration_t settings[], unsigned int num_settings )
|
||||
{
|
||||
int i;
|
||||
time_t now;
|
||||
|
||||
now = time( NULL );
|
||||
fprintf( file, "#calibration file generated by comedi_calibrate\n"
|
||||
"#%s\n", ctime( &now ) );
|
||||
fprintf( file, "{\n" );
|
||||
fprintf( file, "\tdriver_name => \"%s\",\n", comedi_get_driver_name( dev ) );
|
||||
fprintf( file, "\tboard_name => \"%s\",\n", comedi_get_board_name( dev ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue