Re: following error question
Hi Dale
To further Ray's comment, the fix is very simple. In emc/src/emcmot/dro.c
int LS7266Init() {
int t;
for (t = 0; t < 4; t++) {
/* set present flag to true, clear it later if not there */
Present[t] = 1;
/* if even, initialize chip half */
if (! t % 2) {
Change the last line to :-
if (! (t % 2)) {
Just the addition of two parentheses changes the way the test is evaluated.
The original method is incorrect so the initalization is only performed once
when t=0. In the latter case the code is executed when t=0 and t=2.
BTW A few bugs have been fixed elsewhere in the code since BDI-2.10, so it
may pay to update to the current CVS sources.
Regards, Paul.
On Friday 04 Oct 2002 3:47 pm, Ray Henry wrote:
> BTW when you add Y and Z with smdromod, Z won't initialize. Paul found
> the problem and checked a fix into sourceforge.
Date Index |
Thread Index |
Back to archive index |
Back to Mailing List Page
Problems or questions? Contact