You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using hardware timer code from example sketch Link
facing problem while initialisation of timer here MyTim->attachInterrupt(Update_IT_callback);
here in the core, this function is required void Update_IT_callback ( HardwareTimer*) as suggested by this error message invalid conversion from 'void (*)()' to 'void (*)(HardwareTimer*)
changing void Update_IT_callback ( void) to void Update_IT_callback ( HardwareTimer*) is solving my issue.
but please let em know that this fix is done in a proper way to avoid further issues in my code?
also please update the example code for better understanding of new function
thanks.
The text was updated successfully, but these errors were encountered:
Hello,
This is more of a question than an issue.
I am using hardware timer code from example sketch Link
facing problem while initialisation of timer here
MyTim->attachInterrupt(Update_IT_callback);
here in the core, this function is required
void Update_IT_callback ( HardwareTimer*)
as suggested by this error messageinvalid conversion from 'void (*)()' to 'void (*)(HardwareTimer*)
changing
void Update_IT_callback ( void)
tovoid Update_IT_callback ( HardwareTimer*)
is solving my issue.but please let em know that this fix is done in a proper way to avoid further issues in my code?
also please update the example code for better understanding of new function
thanks.
The text was updated successfully, but these errors were encountered: