User defined setting, how to access value from core ? #656
-
Hi, Sorry, I guess the answer is obvious, but I can't find a solution due to my insufficient proficiency in C. Based upon a provided example my_plugin, I wrote a file my_plugin.c that I put in the /Src directory. But now, I would like to access the value of this setting, for example, Setting_UserDefined_0, from the core of GrblHal, such as from protocol_main_loop. Sadly, all my attempts failed:
How can I access this setting while modifying the source code as little as possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use May I ask why do you want to change the core? Plugin code cannot be used to achieve what you want? |
Beta Was this translation helpful? Give feedback.
You can use
setting_get_details()
and thensetting_get_value()
,setting_get_int_value()
orsetting_get_float_value()
depending on the type. Example here.May I ask why do you want to change the core? Plugin code cannot be used to achieve what you want?