Dynomotion

Group: DynoMotion Message: 12301 From: philloder Date: 9/23/2015
Subject: pointer error when compiling

Tom,

I have hooked up my limits switched on my router and tested the limits and they work fine. I am wanting to use the code for homing through mach3 with a Kstep Board and when I try to compile the included program HomeMach3Kstep.c it gives me a compile error "65 pointer expected" at the line shown below

SaveLimits = chan[axis]->LimitSwitchOptions;


I have not changed anything in the code as yet. 

This is KMotion 4.32 

Thanks,

Phil


Group: DynoMotion Message: 12303 From: Tom Kerekes Date: 9/23/2015
Subject: Re: pointer error when compiling
Attachments :
    Hi Phil,

    oops.  the "->" should be a "." instead.  As chan[axis] is an objet not a pointer to an object.  See attached corrected file.

    Regards
    TK

    Group: DynoMotion Message: 12305 From: phil loder Date: 9/23/2015
    Subject: Re: pointer error when compiling
    Tom,
    That got it. 
    Thanks as Always,
    Phil



    On Wednesday, September 23, 2015 4:50 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:


     
    Hi Phil,

    oops.  the "->" should be a "." instead.  As chan[axis] is an objet not a pointer to an object.  See attached corrected file.

    Regards
    TK