All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jorge Ramirez Ortiz <jro@xenomai.org>
To: "Yogi A. Patel" <yapatel@gatech.edu>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] analogy calibration issue(s)
Date: Mon, 17 Aug 2015 10:29:19 -0400	[thread overview]
Message-ID: <55D1EFBF.4040909@xenomai.org> (raw)
In-Reply-To: <55D1E400.2060507@xenomai.org>

On 08/17/2015 09:39 AM, Jorge Ramirez Ortiz wrote:
> On 08/17/2015 09:22 AM, Jorge Ramirez Ortiz wrote:
>> On 08/17/2015 12:11 AM, Yogi A. Patel wrote:
>>>
>>>>> please pull again from http://git.xenomai.org/xenomai-jro.git/log/?h=devel
>>> It took some time, but I was able to get the process to *run* - but not work.
>>>
>>> I had to make the following modifications to the calibration.c file to get this
>>> to work on 3 different machines:
>>
>> none of these modifications are really valid.
>> you are probably forcing analogy to swallow an invalid calibration file.
>>
>>>
> 
>>
>>> @@ -226,7 +229,7 @@ int a4l_read_calibration_file(char *name, struct
>>> a4l_calibration_data *data)
>>>                 if (nb_elements < 0 ) {
>>>                         /* AO is optional */
>>>                         if (!strncmp(subdevice[k], AO_SUBD_STR,
>>> sizeof(AO_SUBD_STR)))
>>> -                            break;
>>> +                               return 0;
>>
> 
> actually I am obviously wrong here. this is needed.
> it went unnoticed on my tests (it is unusual not to have an A0 subdevice)
> will pick it.
> 

ok, so finally I had a look at the code in mainline and yes, this is not needed
either (I was looking at some changes I am working on so this code might change)
in any case this can not have caused you any problems (after it breaks the loop,
it returns 0 which is just what your patch does).



-- 
jro


  reply	other threads:[~2015-08-17 14:29 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05  3:01 [Xenomai] analogy calibration issue(s) Yogi A. Patel
2015-08-05  5:00 ` Jorge Ramirez Ortiz
2015-08-05  5:13   ` Yogi A. Patel
2015-08-05 12:54     ` Jorge Ramirez Ortiz
2015-08-06 19:00 ` Jorge Ramirez Ortiz
2015-08-06 20:30   ` Yogi A. Patel
2015-08-06 20:47     ` Jorge Ramirez Ortiz
2015-08-07  1:57       ` Yogi A. Patel
2015-08-07 11:26         ` Jorge Ramirez Ortiz
2015-08-07 12:43           ` Yogi A. Patel
2015-08-07 13:00             ` Jorge Ramirez Ortiz
2015-08-07 14:13             ` Jorge Ramirez Ortiz
2015-08-07 20:15               ` Yogi A. Patel
2015-08-07 20:32                 ` Jorge Ramirez Ortiz
2015-08-07 20:35                   ` Yogi A. Patel
2015-08-07 20:47                     ` Jorge Ramirez Ortiz
2015-08-07 20:48                       ` Yogi A. Patel
2015-08-07 21:27                         ` Jorge Ramirez Ortiz
2015-08-11 12:29                           ` Yogi A. Patel
2015-08-17  4:11                             ` Yogi A. Patel
2015-08-17 13:22                               ` Jorge Ramirez Ortiz
2015-08-17 13:39                                 ` Jorge Ramirez Ortiz
2015-08-17 14:29                                   ` Jorge Ramirez Ortiz [this message]
2015-08-17 14:22                                 ` Yogi A. Patel
2015-08-20 14:15                                   ` Jorge Ramirez Ortiz
2015-08-07 21:28                     ` Gilles Chanteperdrix
2015-08-11 12:22                       ` Yogi A. Patel
2015-08-11 15:49                         ` Gilles Chanteperdrix
2015-08-07 12:53           ` Jorge Ramirez Ortiz
2015-08-06 20:56     ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55D1EFBF.4040909@xenomai.org \
    --to=jro@xenomai.org \
    --cc=xenomai@xenomai.org \
    --cc=yapatel@gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.