Explorar el Código

Use SBI macro

esenapaj hace 8 años
padre
commit
7950b5268a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/stepper.cpp

+ 1
- 1
Marlin/stepper.cpp Ver fichero

@@ -471,7 +471,7 @@ inline void update_endstops() {
471 471
         #if ENABLED(Z_MIN_PROBE_ENDSTOP) && DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) && ENABLED(HAS_Z_MIN_PROBE)
472 472
           if (z_probe_is_active) {
473 473
             UPDATE_ENDSTOP(Z, MIN_PROBE);
474
-            if (TEST_ENDSTOP(Z_MIN_PROBE)) endstop_hit_bits |= _BV(Z_MIN_PROBE);
474
+            if (TEST_ENDSTOP(Z_MIN_PROBE)) SBI(endstop_hit_bits, Z_MIN_PROBE);
475 475
           }
476 476
         #endif
477 477
       }

Loading…
Cancelar
Guardar