Browse Source

Cleanups to UBL code

Scott Lahteine 8 years ago
parent
commit
cd72901fb7
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      Marlin/ubl_motion.cpp

+ 2
- 4
Marlin/ubl_motion.cpp View File

@@ -250,10 +250,8 @@
250 250
     const float m = dy / dx,
251 251
                 c = start[Y_AXIS] - m * start[X_AXIS];
252 252
 
253
-    bool inf_normalized_flag, inf_m_flag; 
254
-
255
-    inf_normalized_flag = isinf(e_normalized_dist);
256
-    inf_m_flag = isinf(m);
253
+    const bool inf_normalized_flag = isinf(e_normalized_dist),
254
+               inf_m_flag = isinf(m);
257 255
 
258 256
     /**
259 257
      * This block handles vertical lines. These are lines that stay within the same

Loading…
Cancel
Save