I have a custom m7 that i wrote.
When the gcode gets to M07 it does not even go into the macro.
Is there a setting I need to change to use the custom macro instead of the standard?
function M07()
	--wx.wxMessageBox('In M07')
	mc.mcCntlSetLastError(inst, "In M07")
	local inst = mc.mcGetInstance()
	--Get Mist On and Mister Auto handles
	local hMist = mc.mcSignalGetHandle(inst, mc.OSIG_MISTON)
	local hreg = mc.mcRegGetHandle(inst, 'iRegs0/MisterAuto')
	--Get Mister Auto value
	local MistVal = mc.mcRegGetValue(hreg)
	if (MistVal == 0) then
		mc.mcSignalSetState(hMist, 0)
		--wx.wxMessageBox('Mist OFF')
	else
		mc.mcSignalSetState(hMist, 1)
		--wx.wxMessageBox('Mist ON')
	end
end
if (mc.mcInEditor() == 1) then
	M07()
end