Hi,

we were just debugging it on IRC.
the const doesn't make any difference. The only thing that does is taking 
the RTAPI_MP_ARRAY_STRING() out, thus removing the module param.
Even replacing it with module_param_array(ctrl_type, charp, &count, 0); 
doesn't help.

My money is on a problem during insmod time (which should allocate the 
memory for the string params it passes)...

Regards,
Alex



--------------------------------------------------
From: "Jeff Epler" <[email protected]>
Sent: Thursday, January 28, 2010 12:34 AM
To: "Enhanced Machine Controller (EMC)" <[email protected]>
Subject: Re: [Emc-users] stepgen ctrl_mode problem

> Just a stab in the dark, but does reverting this change make ctrl_type
> work for you again?
>
> diff --git a/src/hal/components/stepgen.c b/src/hal/components/stepgen.c
> index b07dcfb..eb520e7 100644
> --- a/src/hal/components/stepgen.c
> +++ b/src/hal/components/stepgen.c
> @@ -319,7 +319,7 @@ MODULE_DESCRIPTION("Step Pulse Generator for EMC 
> HAL");
> MODULE_LICENSE("GPL");
> int step_type[MAX_CHAN] = { -1, -1, -1, -1, -1, -1, -1, -1 };
> RTAPI_MP_ARRAY_INT(step_type,MAX_CHAN,"stepping types for up to 8
> channels");
> -char *ctrl_type[MAX_CHAN] = { "p", "p", "p", "p", "p", "p", "p", "p" };
> +const char *ctrl_type[MAX_CHAN] = { "p", "p", "p", "p", "p", "p", "p", 
> "p" };
> RTAPI_MP_ARRAY_STRING(ctrl_type,MAX_CHAN,"control type (pos or vel) for
> up to 8
>
> /***********************************************************************
>
> Jeff
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the 
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users



>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.733 / Virus Database: 271.1.1/2649 - Release Date: 01/27/10 
> 15:08:00
> 

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to