Skip to content

Commit

Permalink
changes loop_interval_ms variable to constexpr
Browse files Browse the repository at this point in the history
Signed-off-by: MarzellT <[email protected]>
  • Loading branch information
MarzellT committed Sep 12, 2024
1 parent 1e34ec2 commit 0887bd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion modules/SlacSimulator/SlacSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ void SlacSimulator::ready() {
invoke_ready(*p_evse);
invoke_ready(*p_ev);

loop_interval_ms = 250;
std::thread(&SlacSimulator::run, this).detach();
}

Expand Down
2 changes: 1 addition & 1 deletion modules/SlacSimulator/SlacSimulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SlacSimulator : public Everest::ModuleBase {
// insert your private definitions here
void run();

size_t loop_interval_ms{};
static constexpr size_t loop_interval_ms{250};

Check notice on line 57 in modules/SlacSimulator/SlacSimulator.hpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

modules/SlacSimulator/SlacSimulator.hpp#L57

class member 'SlacSimulator::loop_interval_ms' is never used.
// ev@211cfdbe-f69a-4cd6-a4ec-f8aaa3d1b6c8:v1
};

Expand Down

0 comments on commit 0887bd3

Please sign in to comment.