diff options
-rw-r--r-- | physical.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/physical.cpp b/physical.cpp index 77d3d4f..ae9ff1c 100644 --- a/physical.cpp +++ b/physical.cpp @@ -16,6 +16,7 @@ #include "physical.hpp" +#include <cassert> #include <iostream> #include <string> namespace phosphor @@ -77,16 +78,13 @@ void Physical::driveLED(Action current, Action request) return; } - if (request == Action::Blink) - { - return blinkOperation(); - } - if (request == Action::On || request == Action::Off) { return stableStateOperation(request); } - return; + + assert(request == Action::Blink); + blinkOperation(); } void Physical::stableStateOperation(Action action) |