Преглед на файлове

Fix Z4 stepper indirection macros (#17107)

Vert преди 4 години
родител
ревизия
8bbcbc528c
No account linked to committer's email address
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4
    4
      Marlin/src/module/stepper/indirection.h

+ 4
- 4
Marlin/src/module/stepper/indirection.h Целия файл

@@ -185,18 +185,18 @@ void reset_stepper_drivers();    // Called by settings.load / settings.reset
185 185
   #ifndef Z4_ENABLE_INIT
186 186
     #define Z4_ENABLE_INIT() SET_OUTPUT(Z4_ENABLE_PIN)
187 187
     #define Z4_ENABLE_WRITE(STATE) WRITE(Z4_ENABLE_PIN,STATE)
188
-    #define Z4_ENABLE_READ() READ(Z4_ENABLE_PIN)
188
+    #define Z4_ENABLE_READ() bool(READ(Z4_ENABLE_PIN))
189 189
   #endif
190 190
   #ifndef Z4_DIR_INIT
191 191
     #define Z4_DIR_INIT() SET_OUTPUT(Z4_DIR_PIN)
192 192
     #define Z4_DIR_WRITE(STATE) WRITE(Z4_DIR_PIN,STATE)
193
-    #define Z4_DIR_READ() READ(Z4_DIR_PIN)
193
+    #define Z4_DIR_READ() bool(READ(Z4_DIR_PIN))
194 194
   #endif
195
-  #define Z4_STEP_INIT SET_OUTPUT(Z4_STEP_PIN)
195
+  #define Z4_STEP_INIT() SET_OUTPUT(Z4_STEP_PIN)
196 196
   #ifndef Z4_STEP_WRITE
197 197
     #define Z4_STEP_WRITE(STATE) WRITE(Z4_STEP_PIN,STATE)
198 198
   #endif
199
-  #define Z4_STEP_READ READ(Z4_STEP_PIN)
199
+  #define Z4_STEP_READ() bool(READ(Z4_STEP_PIN))
200 200
 #else
201 201
   #define Z4_DIR_WRITE(STATE) NOOP
202 202
 #endif

Loading…
Отказ
Запис