mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fix double disable segfaulting interrupts (#2132)
Also fixes DigitalOutput not closing correctly.
This commit is contained in:
committed by
Peter Johnson
parent
6ceafe3cd0
commit
3fcfc8ea72
@@ -44,6 +44,7 @@ public class DigitalOutput extends DigitalSource implements Sendable, AutoClosea
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
super.close();
|
||||
SendableRegistry.remove(this);
|
||||
// Disable the pwm only if we have allocated it
|
||||
if (m_pwmGenerator != invalidPwmGenerator) {
|
||||
|
||||
Reference in New Issue
Block a user