Skip to content

hardwareTimer updated function #1185

Closed
Closed
@mayurharge

Description

@mayurharge

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 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.

Metadata

Metadata

Assignees

Labels

answeredinvalidThis doesn't seem rightquestion ❓Usually converted as a discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions