Skip to content

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