-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
[BUG] src/core/types.h (assignment of read-only location 'v') #24864
Comments
How about those configs so we don't have to waste time recreating this? yes v *= v is obvious, but so is Don't forget to include |
Sorry, There are no boards have the pin definitions needed to show the problem and therefor there is no simple configuration and changes that could be zipped up. |
Then link to your fork or something. If fixing this could save us feature headaches it's worth looking at. Making Marlin more flexible and scalabe (both up and down) is ever-present goal. |
I working on a eg configs for an octopus, 8 axis, 0 extrudes. will be done shortly.. |
Roughly I think these are the minimum changes needed, using Platform IO for the build |
PR #24866 should fix it |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
In src/core/types.h source file line 598, 599, 752 the code tries to assign to operation parameter.
the lines in question
598
FI XYZval& operator*=(const float &v) { NUM_AXIS_CODE(x *= v, y *= v, z *= v, i *= v, j *= v, k *= v, u *= v, v *= v, w *= v); return this; }
599
FI XYZval& operator=(const int &v) { NUM_AXIS_CODE(x *= v, y *= v, z *= v, i *= v, j *= v, k *= v, u *= v, v *= v, w *= v); return this; }
752
FI XYZEval& operator=(const T &v) { LOGICAL_AXIS_CODE(e *= v, x *= v, y *= v, z *= v, i *= v, j *= v, k *= v, u *= v, v *= v, w *= v); return *this; }
Bug Timeline
not sure
Expected behavior
Code to compile
Actual behavior
No response
Steps to Reproduce
Version of Marlin Firmware
2.1.X
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
No response
Your Slicer
No response
Host Software
No response
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
No configuration needed after reading the code it should be clear about the problem
The text was updated successfully, but these errors were encountered: