浏览代码

Move global variable count_position declaration to stepper.h header file.

Marek Bel 5 年之前
父节点
当前提交
10ba3e7ffd
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 0
      Firmware/stepper.h
  2. 0 2
      Firmware/xyzcal.cpp

+ 1 - 0
Firmware/stepper.h

@@ -90,6 +90,7 @@ extern bool x_min_endstop;
 extern bool x_max_endstop;
 extern bool y_min_endstop;
 extern bool y_max_endstop;
+extern volatile long count_position[NUM_AXIS];
 
 void quickStop();
 

+ 0 - 2
Firmware/xyzcal.cpp

@@ -32,8 +32,6 @@
 
 #define _PI 3.14159265F
 
-extern volatile long count_position[NUM_AXIS];
-
 uint8_t check_pinda_0();
 uint8_t check_pinda_1();
 void xyzcal_update_pos(uint16_t dx, uint16_t dy, uint16_t dz, uint16_t de);