ENH: disable use_ams if not supported

Change-Id: Iebed3edd7fbd7733109ea8dfaac50f5c8fa27d04
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-11-11 17:01:50 +08:00 committed by Lane.Wei
parent 2f12ad7bf2
commit e2002ec152
3 changed files with 9 additions and 1 deletions

View file

@ -1790,6 +1790,9 @@ bool MachineObject::is_function_supported(PrinterFunction func)
case FUNC_PRINT_WITHOUT_SD:
func_name = "FUNC_PRINT_WITHOUT_SD";
break;
case FUNC_USE_AMS:
func_name = "FUNC_USE_AMS";
break;
default:
return true;
}