Skip to content
Snippets Groups Projects

Remove unneeded state_previous

Merged Bram Veenboer requested to merge cleanup-states into master
All threads resolved!
2 files
+ 1
9
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
5
@@ -194,11 +194,6 @@ State PMT::Read() {
std::this_thread::sleep_for(
std::chrono::milliseconds(measurement_interval));
}
while (seconds(state_previous_, state_latest_) == 0) {
std::this_thread::sleep_for(
std::chrono::milliseconds(measurement_interval));
}
state_previous_ = state_latest_;
return state_latest_;
}
Loading