state-slave: turn switch() to actions[]
Using a data-driven approach to manage incoming frames is definitely
cleaner and clearer. It even has a (very minor) size reduction for wrpc.
I plan to use this approach overall, as time permits.
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Showing
Please
register
or
sign in
to comment