From: Frank Mori Hess Date: Thu, 6 Mar 2003 19:18:18 +0000 (+0000) Subject: added a couple comment lines to top of generated calibration files X-Git-Tag: r0_7_21~238 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09db44185bdd9ca492ead287393c90115a34cc26;p=comedilib.git added a couple comment lines to top of generated calibration files --- diff --git a/comedi_calibrate/save_cal.c b/comedi_calibrate/save_cal.c index 10facc4..61e9979 100644 --- a/comedi_calibrate/save_cal.c +++ b/comedi_calibrate/save_cal.c @@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include #include #include +#include #include @@ -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 ) );