From ee12cbd58e1f6d1ad63c2817f2dc9cf46290e30c Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sat, 20 Aug 2022 16:55:32 +0200 Subject: [PATCH] Do not prompt on M115 if FW version check has been disabled As done for M862.4, do now show an upgrade prompt if FW version check as been disabled in the Settings -> HW Setup -> Checks menu. --- Firmware/util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Firmware/util.cpp b/Firmware/util.cpp index 3d789e08..ce823f14 100644 --- a/Firmware/util.cpp +++ b/Firmware/util.cpp @@ -187,6 +187,9 @@ bool force_selftest_if_fw_version() bool show_upgrade_dialog_if_version_newer(const char *version_string) { + if(oCheckVersion == ClCheckVersion::_None) + return false; + int8_t upgrade = is_provided_version_newer(version_string); if (upgrade < 0) return false;