Skip to content

Commit

Permalink
update switch statement
Browse files Browse the repository at this point in the history
Signed-off-by: petersalemink95 <[email protected]>
  • Loading branch information
petersalemink95 committed Jan 8, 2025
1 parent f30dd34 commit 00ab5e5
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ template <symmetry_tag current_sensor_symmetry_> class CurrentSensor : public Ge
set_current(current_sensor_input);

switch (current_sensor_input.measured_terminal_type) {
case MeasuredTerminalType::branch_from:
case MeasuredTerminalType::branch_to:
case MeasuredTerminalType::branch3_1:
case MeasuredTerminalType::branch3_2:
case MeasuredTerminalType::branch3_3:
using enum MeasuredTerminalType;
case branch_from:
case branch_to:
case branch3_1:
case branch3_2:
case branch3_3:
break;
default:
throw InvalidMeasuredTerminalType{current_sensor_input.measured_terminal_type, "Current sensor"};
Expand Down

0 comments on commit 00ab5e5

Please sign in to comment.