encoder: use switch case to handle CAN protocols
authorRomain Forlot <romain.forlot@iot.bzh>
Sat, 23 Nov 2019 08:00:50 +0000 (09:00 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 3 Dec 2019 18:46:26 +0000 (19:46 +0100)
commit453a68145bc28a8464efedc055dd43359dd8a8a7
treeda02354b5f3085e7e628f80cb90a2dae2843abec
parentd4ce219e8031b201b71df5e7b71181f7a15e3240
encoder: use switch case to handle CAN protocols

Better using switch case than if...else. This would be more extendable
and readable.

Change-Id: I5fb03531ad77441bcb7d1620bdb07d82aa6a4eb4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/can/can-encoder.cpp