FIX: compible with old firmware

Change-Id: I66803f95c73ffb82f539c2bfb509266ba9fdb846
This commit is contained in:
Stone Li 2023-04-13 19:36:09 +08:00 committed by Lane.Wei
parent 7e5ddccabe
commit a8a057e514

View file

@ -2291,6 +2291,8 @@ bool MachineObject::is_function_supported(PrinterFunction func)
func_name = "FUNC_PRINT_ALL";
break;
case FUNC_VIRTUAL_TYAY:
if (!ams_support_virtual_tray)
return false;
func_name = "FUNC_VIRTUAL_TYAY";
break;
case FUNC_FILAMENT_BACKUP: