grblHAL / Templates

grblHAL template code and plugin examples
Other
8 stars 2 forks source link

Compilation error using "Persistent Tool" plugin #5

Closed karoria closed 4 months ago

karoria commented 4 months ago

Hi @terjeio I am getting error while compiling with persistent tool plugin as follows:

src/my_plugin.c:99:31: error: 'tool_table' undeclared (first use in this function)

I have already successfully compiled with that plugin earlier. There might be new changes which broke it. Thanks in advance.

terjeio commented 4 months ago

Odd that line 99 is reported, line 97 needs to be changed to this: gc_state->tool = &grbl.tool_table.tool[my_settings.tool_id]; since the tool table has been moved to allow custom implementations.

karoria commented 4 months ago

thanks for quick response. Now it compiles.