But this is not happening in my code. The problem is with the 'key' struct, wich is before the
void assignToBoard(key &obj1, analogMultiplexer &obj2) {
and only when I put the key &obj1 is when I have problems. The analogMultiplexer is the one outside, and when I do
void assignToBoard(analogMultiplexer &obj2) {
nothing bad happens. So I don't see my problem in the example you gave ![]()