Skip to content

Commit

Permalink
boiler: Dont allocate temp statically
Browse files Browse the repository at this point in the history
It's always 0.
  • Loading branch information
adisbladis committed Nov 4, 2023
1 parent b727b7a commit bd8ae72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/espressos/src/reconcile/boiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void setupBoilerPID(Signal<bool> &outputState) {
[](const std::uint16_t &setpoint) { boilerPID.SetSetpoint(setpoint); });

getEventLoop().createInterval(SampleTime, [&]() {
static std::int16_t temp = ::MachineSignals::temp.get();
std::int16_t temp = ::MachineSignals::temp.get();

auto Output = boilerPID.Compute(temp);

Expand Down

0 comments on commit bd8ae72

Please sign in to comment.