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

Return a "deep" copy of calibration settings. #2

Open
aarontabor opened this issue Nov 17, 2016 · 0 comments
Open

Return a "deep" copy of calibration settings. #2

aarontabor opened this issue Nov 17, 2016 · 0 comments

Comments

@aarontabor
Copy link
Contributor

Currently, the getCalibrationSettings() method returns a "shallow" copy of the registeredSensors variable. At the very least, this should be a true "deep" copy so that a caller cannot modify the internal state of the MyoProportional instance.

Proposed Solution

  • think about the best way to return calibration settings to the user.
  • fix appropriately
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

1 participant