<font face="Arial, Verdana">What you could try is adding</font>
<font face="Arial, Verdana">#define SDCARDDETECT -1</font>
<font face="Arial, Verdana">
</font>
<font face="Arial, Verdana">in ui.h at the end just before the last #endif line. That would disable sd card detection so you will not get any removed/inserted message. Instead you need to mount manually then. But it should show if this is somehow related to homing problem and in any case it gets rid of the removed message.</font>