Ver Fonte

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.
Yuri D'Elia há 2 anos atrás
pai
commit
ee12cbd58e
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      Firmware/util.cpp

+ 3 - 0
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;