Cast the period to an integer in `demo/python/mmap.py`'s command setup.
authorW. Trevor King <wking@drexel.edu>
Tue, 13 Mar 2012 13:17:08 +0000 (09:17 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 13 Mar 2012 13:17:08 +0000 (09:17 -0400)
commit3d79204427bfc1725d8184d6467e0a96ec4dfa89
treecbbc94fb60d2fc248883611912ecb958abece2ca
parent8add63faa3b2cf2cbae18345f3caf21fdded234c
Cast the period to an integer in `demo/python/mmap.py`'s command setup.

This avoids:

   Traceback (most recent call last):
     ...
     File ".../mmap.py", line 96, in prepare_cmd
       C.scan_begin_arg = 1e9/freq
     ...
   TypeError: in method 'comedi_cmd_struct_scan_begin_arg_set',
      argument 2 of type 'unsigned int'
demo/python/mmap.py