modmotor: exclude motor settings print on Move Hub
This saves nearly 1K of flash. In the long run, it may be better to include/exclude this type of feature by a generic define about the space for a category of platforms.
@@ -637,7 +637,9 @@ MP_DEFINE_CONST_DICT(motor_Motor_locals_dict, motor_Motor_locals_dict_table);
const mp_obj_type_t motor_Motor_type = {
{ &mp_type_type },
.name = MP_QSTR_Motor,
+#ifndef PBDRV_CONFIG_HUB_MOVEHUB
.print = motor_Motor_print,
+#endif
.make_new = motor_Motor_make_new,
.locals_dict = (mp_obj_dict_t*)&motor_Motor_locals_dict,
};
