encoder: use switch case to handle CAN protocols 26/23226/6
authorRomain Forlot <romain.forlot@iot.bzh>
Sat, 23 Nov 2019 08:00:50 +0000 (09:00 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 9 Jan 2020 14:55:03 +0000 (15:55 +0100)
commit28340674704f385c916e528f66e368b10fad31d8
tree2fdbd5395d9c50202a02c858c09feb3a9398bbed
parent31996413bb7a4cddc94067568117b7ff23ee60ff
encoder: use switch case to handle CAN protocols

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

Bug-AGL: SPEC-2988

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