nxp-mcuxpresso / mcux-sdk-examples

MCUXpresso SDK Examples
Other
48 stars 24 forks source link

Refactoring hearth beat timeout cb. #12

Closed Hadatko closed 2 years ago

Hadatko commented 2 years ago

Signed-off-by: Cervenka Dusan cervenka@acrios.com

nxp-wayne commented 2 years ago

What's the purpose of the refactor? Is there any issue in original implementation? Putting all control into dispatcher thread can avoid contents of multiple threads.

Hadatko commented 2 years ago

Refactored code: in .h updated macro to be misra complained. in .c use existing function instead of writting same code as function implementation.

nxp-wayne commented 2 years ago

Makes sense, thank you.