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 authored and Lane.Wei committed 2022-12-15 04:33:48 -05:00
1 parent 2f12ad7bf2
commit e2002ec152
3 files changed
+9 -1

No files matched your search

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