mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -06:00
fix precedence errors (#3611)
Fix a handful of precedence errors and 1 logic/precedence error. None of the code will compile as intended without these changes. Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
9b76f51bd3
commit
1615832236
4 changed files with 8 additions and 8 deletions
|
@ -1258,11 +1258,11 @@ bool MachineObject::is_axis_at_home(std::string axis)
|
|||
return true;
|
||||
|
||||
if (axis == "X") {
|
||||
return home_flag & 1 == 1;
|
||||
return (home_flag & 1) == 1;
|
||||
} else if (axis == "Y") {
|
||||
return home_flag >> 1 & 1 == 1;
|
||||
return (home_flag >> 1 & 1) == 1;
|
||||
} else if (axis == "Z") {
|
||||
return home_flag >> 2 & 1 == 1;
|
||||
return (home_flag >> 2 & 1) == 1;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue