function fixMachineItems(state, mergeData) {
	if (mergeData.cnc && mergeData.cnc.spindles) {
		fixItems(state.cnc.spindles, Spindle);
	}

	if (mergeData.electronics && mergeData.electronics.expansionBoards) {
		fixItems(state.electronics.expansionBoards, ExpansionBoard);
	}

	if (mergeData.fans) {
		fixItems(state.fans, Fan)
	}

	if (mergeData.heat) {
		if (mergeData.heat.beds) {
			fixItems(state.heat.beds, BedOrChamber);
		}
		if (mergeData.heat.chambers) {
			fixItems(state.heat.chambers, BedOrChamber);
		}
		if (mergeData.heat.extra) {
			fixItems(state.heat.extra, ExtraHeater);
		}
		if (mergeData.heat.heaters) {
			fixItems(state.heat.heaters, Heater);
		}
	}

	if (mergeData.lasers) {
		fixItems(state.lasers, Laser);
	}

	// Layers are not verified for performance reasons

	if (mergeData.move) {
		if (mergeData.move.axes) {
			fixItems(state.move.axes, Axis);
		}
		if (mergeData.move.drives) {
			fixItems(state.move.drives, Drive);
		}
		if (mergeData.move.extruders) {
			fixItems(state.move.extruders, Extruder);
		}
	}

	if (mergeData.network && mergeData.network.interfaces) {
		fixItems(state.network.interfaces, NetworkInterface);
	}

	if (mergeData.sensors) {
		if (mergeData.sensors.endstops) {
			fixItems(state.sensors.endstops, Endstop);
		}
		if (mergeData.sensors.probes) {
			fixItems(state.sensors.probes, Probe);
		}
	}

	if (mergeData.storages) {
		fixItems(state.storages, Storage);
	}

	if (mergeData.tools) {
		fixItems(state.tools, Tool);
	}

	if (mergeData.userVariables) {
		fixItems(state.userVariables, UserVariable);
	}
}
// But getting everything the way it's supposed to work took longer than expected anyway...
But getting everything the way it's supposed to work took longer than expected anyway
But getting everything the way it ' s supposed to work took longer than expected anyway
function fixMachineItems(state, mergeData) {
	if (mergeData.cnc && mergeData.cnc.spindles) {
		fixItems(state.cnc.spindles, Spindle);
	}
	if (mergeData.electronics && mergeData.electronics.expansionBoards) {
		fixItems(state.electronics.expansionBoards, ExpansionBoard);
	}
	if (mergeData.fans) {
		fixItems(state.fans, Fan)
	}
	if (mergeData.heat) {
		if (mergeData.heat.beds) {
			fixItems(state.heat.beds, BedOrChamber);
		}
		if (mergeData.heat.chambers) {
			fixItems(state.heat.chambers, BedOrChamber);
		}
		if (mergeData.heat.extra) {
			fixItems(state.heat.extra, ExtraHeater);
		}
		if (mergeData.heat.heaters) {
			fixItems(state.heat.heaters, Heater);
		}
	}
	if (mergeData.lasers) {
		fixItems(state.lasers, Laser);
	}
	if (mergeData.move) {
		if (mergeData.move.axes) {
			fixItems(state.move.axes, Axis);
		}
		if (mergeData.move.drives) {
			fixItems(state.move.drives, Drive);
		}
		if (mergeData.move.extruders) {
			fixItems(state.move.extruders, Extruder);
		}
	}
	if (mergeData.network && mergeData.network.interfaces) {
		fixItems(state.network.interfaces, NetworkInterface);
	}
	if (mergeData.sensors) {
		if (mergeData.sensors.endstops) {
			fixItems(state.sensors.endstops, Endstop);
		}
		if (mergeData.sensors.probes) {
			fixItems(state.sensors.probes, Probe);
		}
	}
	if (mergeData.storages) {
		fixItems(state.storages, Storage);
	}
	if (mergeData.tools) {
		fixItems(state.tools, Tool);
	}
	if (mergeData.userVariables) {
		fixItems(state.userVariables, UserVariable);
	}
}
function fixMachineItems ( state , mergeData ) { if ( mergeData . cnc && mergeData . cnc . spindles ) { fixItems ( state . cnc . spindles , Spindle ) ; } if ( mergeData . electronics && mergeData . electronics . expansionBoards ) { fixItems ( state . electronics . expansionBoards , ExpansionBoard ) ; } if ( mergeData . fans ) { fixItems ( state . fans , Fan ) } if ( mergeData . heat ) { if ( mergeData . heat . beds ) { fixItems ( state . heat . beds , BedOrChamber ) ; } if ( mergeData . heat . chambers ) { fixItems ( state . heat . chambers , BedOrChamber ) ; } if ( mergeData . heat . extra ) { fixItems ( state . heat . extra , ExtraHeater ) ; } if ( mergeData . heat . heaters ) { fixItems ( state . heat . heaters , Heater ) ; } } if ( mergeData . lasers ) { fixItems ( state . lasers , Laser ) ; } if ( mergeData . move ) { if ( mergeData . move . axes ) { fixItems ( state . move . axes , Axis ) ; } if ( mergeData . move . drives ) { fixItems ( state . move . drives , Drive ) ; } if ( mergeData . move . extruders ) { fixItems ( state . move . extruders , Extruder ) ; } } if ( mergeData . network && mergeData . network . interfaces ) { fixItems ( state . network . interfaces , NetworkInterface ) ; } if ( mergeData . sensors ) { if ( mergeData . sensors . endstops ) { fixItems ( state . sensors . endstops , Endstop ) ; } if ( mergeData . sensors . probes ) { fixItems ( state . sensors . probes , Probe ) ; } } if ( mergeData . storages ) { fixItems ( state . storages , Storage ) ; } if ( mergeData . tools ) { fixItems ( state . tools , Tool ) ; } if ( mergeData . userVariables ) { fixItems ( state . userVariables , UserVariable ) ; } }
But getting everything the way it's supposed to work took longer than expected anyway...
But getting everything the way it ' s supposed to work took longer than expected anyway ...
// Layers are not verified for performance reasons