Skip to content

Commit

Permalink
Use if to check for monitor type instead of switch to silence compile…
Browse files Browse the repository at this point in the history
…r warnings

Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Nov 14, 2024
1 parent bd31069 commit 84d12b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ocpp/v201/monitoring_updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ void MonitoringUpdater::evaluate_monitor(const VariableMonitoringMeta& monitor_m
const VariableAttribute& attribute, const std::string& value_previous,
const std::string& value_current) {
// Don't care about periodic
switch (monitor_meta.monitor.type) {
case MonitorEnum::Periodic:
case MonitorEnum::PeriodicClockAligned:
if (monitor_meta.monitor.type == MonitorEnum::Periodic or
monitor_meta.monitor.type == MonitorEnum::PeriodicClockAligned) {
return;
}

Expand Down

0 comments on commit 84d12b0

Please sign in to comment.