Forum >Mind+ Extensions
General Mind+Arduino

Mind+ Extensions

userHead Chris.Despoinidis 2025-02-24 17:01:15 120 Views1 Replies

Hi,

 

I have a problem with an extension i make, i am using the Generator to add some libraries 

 

   Generator.addInclude("TB6612","#include <TB6612FNG.h>");

   Generator.addObject(`TB6612` ,`TB6612FNG`,`tb_alx(5,4,6,7)`);

 

but since these are being used by another extension as well they get added twice on the automatic code.

This ID parameter is the same (TB6612) and even if i use the cover option (as true) the same thing happens.

 

This only happens when i add commands from both extensions, if i use commands from the same extension everything is as expected.

How can i solve this problem?

 

2025-02-26 14:52:05

It seems like you are facing a problem with duplicate library inclusions and object creations when using multiple extensions in your project. This can indeed be tricky when both extensions use the same library and object name.

userHeadPic Tonny12138