aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/StateMachines
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-11-02 16:38:19 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-11-02 16:38:19 +0200
commit9b3914f2aa4bb0dc50ee27321f7fa9caec8d05be (patch)
tree7a83927793e6c3e05131c39ca7cbcb92449a3980 /Software/Embedded_SW/Embedded/StateMachines
parentf83a99d14efab540c664a4bed826caf213e7074d (diff)
downloadTango-9b3914f2aa4bb0dc50ee27321f7fa9caec8d05be.tar.gz
Tango-9b3914f2aa4bb0dc50ee27321f7fa9caec8d05be.zip
preparation for persistant alarms, handle temperature spike, handle voltage hystersis
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines')
-rw-r--r--Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c b/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c
index 7a8265cbb..155d84fdb 100644
--- a/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c
+++ b/Software/Embedded_SW/Embedded/StateMachines/Printing/JobSTM.c
@@ -1042,10 +1042,6 @@ void SendCleaningJobProgress(double ProcessedLength, int SegmentId, bool done, c
double totlen = ProcessedLength;
if (ProcessedLength>job_length)
totlen = job_length;
- if (Message)
- {
- response.status = Message;
- }
response.has_progress = true;
response.progress = totlen;
response.has_total = true;
@@ -1060,6 +1056,11 @@ void SendCleaningJobProgress(double ProcessedLength, int SegmentId, bool done, c
{
responseContainer.has_error = true;
responseContainer.error = JobError_to_ErrorCode[JobEndReason];
+ responseContainer.errormessage = Message;
+ if (Message) //moved - bug #3867
+ {
+ response.status = Message;
+ }
}
if (JobAbortedByUser == true)
{