I have had a look at ow_1921.c in the code I downloaded for owfs-2.8p1

and altered :


{"mission/frequency", PROPERTY_LENGTH_YESNO, NON_AGGREGATE, ft_yesno,
fc_volatile, FS_r_samplerate, FS_w_samplerate, VISIBLE, NO_FILETYPE_DATA,},

to :

{"mission/frequency", PROPERTY_LENGTH_UNSIGNED, NON_AGGREGATE, ft_unsigned,
fc_volatile, FS_r_samplerate, FS_w_samplerate, VISIBLE, NO_FILETYPE_DATA,},


Recompiled it and now I can alter the mission/frequency variable so as to be
able to change the sample rate.

To test I did :

echo "1">easystart
echo "0">enable
echo "10">frequency

and now the log shows:

date.0 Wed Aug 25 22:22:00 2010
date.1 Wed Aug 25 22:32:00 2010
date.2 Wed Aug 25 22:42:00 2010
date.3 Wed Aug 25 22:52:00 2010
date.4 Wed Aug 25 23:02:00 2010
date.5 Wed Aug 25 23:12:00 2010
date.6 Wed Aug 25 23:22:00 2010

etc.

I do not know how to provide a diff file or if anything else needs altering
but it does seem to solve my problem.

Hope this helps,

Norman
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to