소스 검색

set_z parameters marked const

Scott Lahteine 8 년 전
부모
커밋
827738a790
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/mesh_bed_leveling.h

+ 1
- 1
Marlin/mesh_bed_leveling.h 파일 보기

@@ -39,7 +39,7 @@
39 39
 
40 40
     static FORCE_INLINE float get_probe_x(int8_t i) { return MESH_MIN_X + (MESH_X_DIST) * i; }
41 41
     static FORCE_INLINE float get_probe_y(int8_t i) { return MESH_MIN_Y + (MESH_Y_DIST) * i; }
42
-    void set_z(int8_t px, int8_t py, float z) { z_values[py][px] = z; }
42
+    void set_z(const int8_t px, const int8_t py, const float z) { z_values[py][px] = z; }
43 43
 
44 44
     inline void zigzag(int8_t index, int8_t &px, int8_t &py) {
45 45
       px = index % (MESH_NUM_X_POINTS);

Loading…
취소
저장