When I add an addlistener to a pin on a DUE project I get compile error.
ERROR is
K:\B4R\DUESLA~1\Objects\src\b4r_i2cslave.cpp: In static member function 'static void b4r_i2cslave::_init()':
b4r_i2cslave.cpp:41:42: error: invalid conversion from 'void (*)()' to 'B4R::SubVoidBool {aka void (*)(bool)}' [-fpermissive]
b4r_i2cslave::_i2cip->AddListener(_ipmake);
^
In file included from K:\B4R\DUESLA~1\Objects\src\B4RDefines.h:24:0,
from K:\B4R\DUESLA~1\Objects\src\b4r_i2cslave.cpp:1:
rCore.h:657:9: error: initializing argument 1 of 'void B4R:in::AddListener(B4R::SubVoidBool)' [-fpermissive]
void AddListener(SubVoidBool StateChangedSub) ;
^
exit status 1
Is there a bug in the Due code.
ERROR is
K:\B4R\DUESLA~1\Objects\src\b4r_i2cslave.cpp: In static member function 'static void b4r_i2cslave::_init()':
b4r_i2cslave.cpp:41:42: error: invalid conversion from 'void (*)()' to 'B4R::SubVoidBool {aka void (*)(bool)}' [-fpermissive]
b4r_i2cslave::_i2cip->AddListener(_ipmake);
^
In file included from K:\B4R\DUESLA~1\Objects\src\B4RDefines.h:24:0,
from K:\B4R\DUESLA~1\Objects\src\b4r_i2cslave.cpp:1:
rCore.h:657:9: error: initializing argument 1 of 'void B4R:in::AddListener(B4R::SubVoidBool)' [-fpermissive]
void AddListener(SubVoidBool StateChangedSub) ;
^
exit status 1
Is there a bug in the Due code.