Giter VIP home page Giter VIP logo

Comments (8)

Bob-the-Kuhn avatar Bob-the-Kuhn commented on August 17, 2024

#define Z_MIN_PROBE_PIN Z_MAX_PIN was removed from Configuration.h because it doesn't work. It results in the Z_MIN_PROBE_PIN not having a value. That results in the "interrupt-capable" test not being applied to the Z_MIN_PROBE_PIN. Strange stuff happens at compile time.

#define Z_MIN_PROBE_PIN 18 in either Configuration.h or in the pins_YOUR_BOARD.h file works as expected.

As best I can tell, you are correct that there is NOT a default for the Z_MIN_PROBE_PIN. I can't find one in the code and you get a sanity check error when Z_MIN_PROBE_ENDSTOP is enabled but Z_MIN_PROBE_PIN isn't specified.

I'll start a PR to correct the defaults to Z_MAX statement in the Configuration.h files.

from marlindocumentation.

Bob-the-Kuhn avatar Bob-the-Kuhn commented on August 17, 2024

Definitely past my bed time.

The offending statement is in the probes document on the Wiki.

from marlindocumentation.

apelly avatar apelly commented on August 17, 2024

It's late for me too, but I think you are describing what happens if Z_MIN_ENDSTOP is not defined.

I spent a whole afternoon looking at this, and there is a default. In some situations. The trouble is the other X (re)definitions in some unknown hierarchy screwing with what I declared.

from marlindocumentation.

Bob-the-Kuhn avatar Bob-the-Kuhn commented on August 17, 2024

screwing with what I declared

If you can provide examples of this I can investigate & see if there is a reasonable explanation.

from marlindocumentation.

Bob-the-Kuhn avatar Bob-the-Kuhn commented on August 17, 2024

PR #86 has been created to delete the Z-MAX default line.

from marlindocumentation.

apelly avatar apelly commented on August 17, 2024

As I said: Despite the semi-policy of limiting the words in the source, I think it would be kind to mention Z_MIN_ENDSTOP in that comment.

I did see evidence that something tries to use the z-max pin, but it was obviously from some time ago, because there is a lot of other conflicting code now.

As for redefining things; there's a bunch of stuff related to the bl-touch somewhere obtuse, a bunch in conditional_lcd.h, pins_xxx.h does it too.

I'll raise a separate issue if you think it's worth it.

from marlindocumentation.

Bob-the-Kuhn avatar Bob-the-Kuhn commented on August 17, 2024

I know all about the BLTouch defines. We did it that way to make life simpler for the users which also makes supporting Marlin a lot easier. Unless there's an error or an unusual situation we'll leave them alone.

from marlindocumentation.

apelly avatar apelly commented on August 17, 2024

Sweet. I was just pointing out some things that caused me pain or looked odd to me.

from marlindocumentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.