Morendil / simreprap

emulates en entire reprap 3D printer running a Marlin firmware binary, renders it in opengl
0 stars 0 forks source link

Z_MAX_PIN apparently starts high #2

Closed Morendil closed 9 years ago

Morendil commented 9 years ago

I've recently added pin mappings to complement the original mappings which were for mega644.

It looks as if pin 15, which is what Marlin maps Z_MAX_PIN to for RAMPS 1.4 boards, starts out high (logically high; my configuration has pullups enabled, so endstops are "inverting"). This shouldn't happen since the starting position is less than the max configured in reprap.c.

The evidence for this is that an initial M119 after starting up reports Z_MAX as TRIGGERED. (It's possible that this has nothing to do with the pin, I'm not sure how to test that hypothesis.)

Morendil commented 9 years ago

Fixed by c246d86a26af91aea9a52265d6648bd99104b5c8