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.
This commit is contained in:
Yuri D'Elia 2022-08-20 16:55:32 +02:00
parent 3ebd8b88a4
commit ee12cbd58e

View File

@ -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;