From 3a7f539fd5ca4cdcdd7b26fdaf6605bb72b26cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 5 Aug 2021 12:29:38 +0200 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=91=B7=20Fix=20version=20sent=20to=20?= =?UTF-8?q?custopizer=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80b403981..ae1f20280 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -183,10 +183,14 @@ jobs: needs: publish-on-pypi runs-on: ubuntu-latest steps: + - name: 👀 Determine version + run: | + OCTOPRINT_VERSION=$(echo $GITHUB_REF | cut -d/ -f3) + echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.REPODISPATCH_TOKEN }} repository: OctoPrint/OctoPi-UpToDate event-type: octoprint_release - client-payload: '{"version": "${{ github.ref }}"}' + client-payload: '{"version": "${{ env.OCTOPRINT_VERSION }}"}' From a7d4c5f2dfe0d6a23eea8f08d5f7a3b851620425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Aug 2021 10:04:48 +0200 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=90=9B=20Change=20latency=20mode=20se?= =?UTF-8?q?tting=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should only ever attempt to set it if we are supposed to set it to True. Otherwise there's no need to do anything really and risk running into issues. Closes #4203 --- src/octoprint/util/comm.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 8355e6286..694d180a0 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -3752,19 +3752,18 @@ class MachineCom(object): # noinspection PyProtectedMember set_close_exec(serial_obj._port_handle) - if hasattr(serial_obj, "set_low_latency_mode"): - try: - serial_obj.set_low_latency_mode( - settings().getBoolean(["serial", "lowLatency"]) + if settings().getBoolean(["serial", "lowLatency"]): + if hasattr(serial_obj, "set_low_latency_mode"): + try: + serial_obj.set_low_latency_mode(True) + except Exception: + self._logger.exception( + "Could not set low latency mode on serial port, continuing without" + ) + else: + self._logger.info( + "Platform doesn't support low latency mode on serial port" ) - except Exception: - self._logger.exception( - "Could not set low latency mode on serial port, continuing without" - ) - else: - self._logger.info( - "Platform doesn't support low latency mode on serial port" - ) return BufferedReadlineWrapper(serial_obj) From 2f266f997480370a2138750a0a112931a788497b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Aug 2021 10:18:18 +0200 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=90=9B=20printTimeLeft=20may=20be=20N?= =?UTF-8?q?one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So we need to check for that first before we try to convert to an int. Regression. Closes #4202 --- src/octoprint/printer/standard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 0aaa197a6..7b8912d66 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -1184,14 +1184,15 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): ) try: - ptl, printTimeLeftOrigin = estimator.estimate( + printTimeLeft, printTimeLeftOrigin = estimator.estimate( progress, printTime, cleanedPrintTime, statisticalTotalPrintTime, statisticalTotalPrintTimeType, ) - printTimeLeft = int(ptl) + if printTimeLeft is not None: + printTimeLeft = int(printTimeLeft) except Exception: self._logger.exception( "Error while estimating print time via {}".format(estimator) From cdcbb1310205b3125089f4f99e56d270bdbfed24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Aug 2021 10:31:53 +0200 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=92=84=20eventmgr:=20Use=20faster=20f?= =?UTF-8?q?ade-in=20animation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4204 --- .../plugins/eventmanager/templates/eventmanager_settings.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/eventmanager/templates/eventmanager_settings.jinja2 b/src/octoprint/plugins/eventmanager/templates/eventmanager_settings.jinja2 index 9f070759b..31b156a62 100644 --- a/src/octoprint/plugins/eventmanager/templates/eventmanager_settings.jinja2 +++ b/src/octoprint/plugins/eventmanager/templates/eventmanager_settings.jinja2 @@ -20,7 +20,7 @@ -