Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safety door enabled but not stopping the program #34

Closed
macbef opened this issue Apr 24, 2023 · 2 comments
Closed

safety door enabled but not stopping the program #34

macbef opened this issue Apr 24, 2023 · 2 comments

Comments

@macbef
Copy link

macbef commented Apr 24, 2023

Hello again,

I'm playing around with the safety door function but I'm running into a problem.

When I enable the door with:

#define SAFETY_DOOR_ENABLE 1

...I can see the door input in the status and I can configure pullup and direction. Perfect so far.
Unfortunately the opening of the door-switch doesn't stop the program.

Sending 0x84 by software works perfectly. Is there anything I miss? Do I have to link the hardware door input to the 0x84-command?

I was trying to use the "hold/pause" input instead. That works ok, but I need to turn off the coolant as well (and "hold" just stops the motion)

Any hint for me?

@terjeio
Copy link
Contributor

terjeio commented Apr 24, 2023

There is a typo in driver.c causing the interrupt handler to be disabled:

if(irq_mask & (1<<0)) {

should be:
if(irq_mask & (1<<4)) {

@macbef
Copy link
Author

macbef commented Apr 25, 2023

Once again, thank you so much for your incredible support!

@macbef macbef closed this as completed Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants