Open Palatis opened 6 years ago
a reduced attempt of https://github.com/thijse/Arduino-CmdMessenger/pull/17
this one should be more user-friendly.
@Palatis I will accept PR on gyssels/Arduino-CmdMessenger, and I messaging the other PR submitters so it can become an active branch I engage myself to do a full PR back here if in the future I'll not maintain this anymore.
declare callback list only when MAXCALLBACKS != 0 reduce memory and binary footprint.
the code actually run faster with a giant switch-case as the default handler...