Module: xenomai-2.5 Branch: master Commit: 51d69ef9393dbc183e21ab8adc58d55d6f11ea7f URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=51d69ef9393dbc183e21ab8adc58d55d6f11ea7f
Author: Alexis Berlemont <[email protected]> Date: Tue Aug 24 00:52:36 2010 +0200 analogy: minor changes in cmd_bits --- src/utils/analogy/cmd_bits.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/utils/analogy/cmd_bits.c b/src/utils/analogy/cmd_bits.c index aa0e082..966e278 100644 --- a/src/utils/analogy/cmd_bits.c +++ b/src/utils/analogy/cmd_bits.c @@ -45,7 +45,7 @@ a4l_cmd_t cmd = { .start_src = TRIG_INT, .start_arg = 0, .scan_begin_src = TRIG_EXT, - .scan_begin_arg = 0, /* in ns */ + .scan_begin_arg = 28, /* in ns */ .convert_src = TRIG_NOW, .convert_arg = 0, /* in ns */ .scan_end_src = TRIG_COUNT, @@ -270,6 +270,10 @@ out_cmd_bits: if (dsc.sbdata != NULL) free(dsc.sbdata); + /* The fd closure will automatically trigger a cancel; so, + wait a little bit for the end of the transfer */ + sleep(1); + /* Release the file descriptor */ a4l_close(&dsc); _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
