Hi, I have had a search through the forum and seen similar issues but not exactly the same. I was on a long trip yesterday and my D40 went into limp mode about 40 or 50 times in about 600 km.
It seems to happen at light throttle settings as I back further off the throttle, it has never...