This is probably a very stupid question but..
i have a class with two constructor, one takes one parameter, the other takes no parameters:
MD23::MD23(byte address)
{
_address = address;
}
MD23::MD23()
{
_address = DEF_ADDRESS;
}
Now, if i create the object like this:
MD23 md23(0x58);
It works perfectly, but if i write:
MD23 md23();
then whenever i call a method i have the following error:
error: request for member 'setMode' in 'md23', which is of non-class type 'MD23 ()()' In function 'void loop()':
I don't really get this error.. but i'm sure is something stupid