From f1031d23024af2edce948c0d1a5265b914be54da Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Tue, 5 Mar 2019 16:00:50 +0100 Subject: [PATCH] new farm statuses for pause (14) and wait for user (15) --- Firmware/ultralcd.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index ccf037f5..d7b9b1b4 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -4080,7 +4080,25 @@ void prusa_statistics(int _message, uint8_t _fil_nr) { { case 0: // default message - if (IS_SD_PRINTING) + if (busy_state == PAUSED_FOR_USER) + { + SERIAL_ECHO("{"); + prusa_stat_printerstatus(15); + prusa_stat_farm_number(); + prusa_stat_printinfo(); + SERIAL_ECHOLN("}"); + status_number = 15; + } + else if (isPrintPaused || card.paused) + { + SERIAL_ECHO("{"); + prusa_stat_printerstatus(14); + prusa_stat_farm_number(); + prusa_stat_printinfo(); + SERIAL_ECHOLN("}"); + status_number = 14; + } + else if (IS_SD_PRINTING) { SERIAL_ECHO("{"); prusa_stat_printerstatus(4);