MarkT:
In the if-else-if-else-if in loop in the end device the first two tests are exhaustive so the third arm
can never happen.
What are the limitations on using if/ Else-if/ Else-if statement then if there's any? Does the problem lies with it not meeting the switch condition value therefore it was unable to execute switch case?