diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-06-26 11:54:29 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-06-26 11:54:29 +0300 |
commit | aa4b6c919514407a8b836618185541e1abf429b0 (patch) | |
tree | 16223c53aeacd04d56fa30c03491d91a7c3ab4aa /src | |
parent | 169dc350b6ebbbc059480a8013e96c4fbc588772 (diff) |
Update boards seq # when MCU temps or voltages updated
Diffstat (limited to 'src')
-rw-r--r-- | src/Platform/Platform.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp index e12dd579..e62f4658 100644 --- a/src/Platform/Platform.cpp +++ b/src/Platform/Platform.cpp @@ -842,6 +842,8 @@ void Platform::ResetVoltageMonitors() noexcept #if HAS_12V_MONITOR lowestV12 = highestV12 = currentV12; #endif + + reprap.BoardsUpdated(); } #if MCU_HAS_UNIQUE_ID @@ -1109,10 +1111,12 @@ void Platform::Spin() noexcept if (currentMcuTemperature > highestMcuTemperature) { highestMcuTemperature= currentMcuTemperature; + reprap.BoardsUpdated(); } if (currentMcuTemperature < lowestMcuTemperature) { lowestMcuTemperature = currentMcuTemperature; + reprap.BoardsUpdated(); } } #endif @@ -1832,6 +1836,12 @@ void Platform::Diagnostics(MessageType mtype) noexcept MessageF(mtype, "MCU temperature: min %.1f, current %.1f, max %.1f\n", (double)lowestMcuTemperature, (double)currentMcuTemperature, (double)highestMcuTemperature); lowestMcuTemperature = highestMcuTemperature = currentMcuTemperature; + +# if HAS_VOLTAGE_MONITOR + // No need to call reprap.BoardsUpdated() here because that is done in ResetVoltageMonitors which is called later +# else + reprap.BoardsUpdated(); +# endif #endif #if HAS_VOLTAGE_MONITOR @@ -5146,10 +5156,12 @@ void Platform::Tick() noexcept if (currentVin > highestVin) { highestVin = currentVin; + reprap.BoardsUpdated(); } if (currentVin < lowestVin) { lowestVin = currentVin; + reprap.BoardsUpdated(); } # endif @@ -5158,10 +5170,12 @@ void Platform::Tick() noexcept if (currentV12 > highestV12) { highestV12 = currentV12; + reprap.BoardsUpdated(); } if (currentV12 < lowestV12) { lowestV12 = currentV12; + reprap.BoardsUpdated(); } # endif |