Looks like both are Repetier files. Read line 33 - 35. I compared the files in Notepad++ and noticed you changed the board type and adjusted a few length parameters.plus turned off distortion correction and changed feature controller.
Does a G31 return the correct responses activated/unactivated? Could be the pin assigned, pullup, on_high settings. There is a good tutorial on bed levelling on the Repetier.com site.
Just saw this post.