diff options
author | David Crocker <dcrocker@eschertech.com> | 2018-04-01 13:45:55 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2018-04-01 13:45:55 +0300 |
commit | 4d151a5d02a8bca3810e4a75bf225136548fa1ab (patch) | |
tree | c81234e4e1ad675310272c6ffaf74a94f9ac6438 /src/Platform.cpp | |
parent | de270d2a00fd83cc3961a749432bff940601f1dd (diff) |
More RTOS work
Movd the file info parser out of PrintManager into a separate class
within Storage and made it thread safe
Added "Off" status for DWC and PanelDue
Fixed bug with using G1 S1 Ennn on a delta printer
Diffstat (limited to 'src/Platform.cpp')
-rw-r--r-- | src/Platform.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Platform.cpp b/src/Platform.cpp index 656018d6..17f25317 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -1640,6 +1640,11 @@ bool Platform::IsPowerOk() const return !autoSaveEnabled || currentVin > autoPauseReading; } +bool Platform::HasVinPower() const +{ + return driversPowered; // not quite right because drivers are disabled if we get over-voltage too, but OK for the status report +} + void Platform::EnableAutoSave(float saveVoltage, float resumeVoltage) { autoPauseReading = PowerVoltageToAdcReading(saveVoltage); |