Skip to content

Fixed lib.XRPLib.defaults import issue #61

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ksiegall
Copy link
Member

Fixed ENOMEM error that occurs when both XRPLib.defaults and lib.XRPLib.defaults are imported within the same program.

The bug was a result of both the IMU and Encoder State Machines being instantiated multiple times. The IMU would enter an infinite recursive loop, and the Encoder State Machine would crash due to already being instantiated.

The fix was to change XRPLib.defaults to use absolute imports instead of relative, so that calling lib.XRPLib.defaults would still import XRPLib.encoder instead of lib.XRPLib.encoder (for example)

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

Successfully merging this pull request may close these issues.

1 participant