Commit 6eab0dd 1 parent 0aeb74e commit 6eab0dd Copy full SHA for 6eab0dd
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ uint8_t PrusaErrorCodeIndex(uint16_t ec) {
84
84
// Need to be placed before TMC-related errors in order to process couples of error bits between single ones
85
85
// and to keep the code size down.
86
86
if (ec & (uint16_t )ErrorCode::TMC_PULLEY_BIT) {
87
- if (ec & (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION == (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION)
87
+ if (( ec & (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION)
88
88
return FindErrorIndex (ERR_ELECTRICAL_PULLEY_SELFTEST_FAILED);
89
89
} else if (ec & (uint16_t )ErrorCode::TMC_SELECTOR_BIT) {
90
- if (ec & (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION == (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION)
90
+ if (( ec & (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION)
91
91
return FindErrorIndex (ERR_ELECTRICAL_SELECTOR_SELFTEST_FAILED);
92
92
} else if (ec & (uint16_t )ErrorCode::TMC_IDLER_BIT) {
93
- if (ec & (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION == (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION)
93
+ if (( ec & (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == (uint16_t )ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION)
94
94
return FindErrorIndex (ERR_ELECTRICAL_IDLER_SELFTEST_FAILED);
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments