Bläddra i källkod

Fix point_t pointer in Nozzle::zigzag

Scott Lahteine 7 år sedan
förälder
incheckning
d8ef9bda18
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      Marlin/nozzle.cpp

+ 1
- 1
Marlin/nozzle.cpp Visa fil

80
     const uint8_t zigs = objects << 1;
80
     const uint8_t zigs = objects << 1;
81
     const bool horiz = FABS(diffx) >= FABS(diffy);    // Do a horizontal wipe?
81
     const bool horiz = FABS(diffx) >= FABS(diffy);    // Do a horizontal wipe?
82
     const float P = (horiz ? diffx : diffy) / zigs;   // Period of each zig / zag
82
     const float P = (horiz ? diffx : diffy) / zigs;   // Period of each zig / zag
83
-    point_t *side;
83
+    const point_t *side;
84
     for (uint8_t j = 0; j < strokes; j++) {
84
     for (uint8_t j = 0; j < strokes; j++) {
85
       for (int8_t i = 0; i < zigs; i++) {
85
       for (int8_t i = 0; i < zigs; i++) {
86
         side = (i & 1) ? &end : &start;
86
         side = (i & 1) ? &end : &start;

Laddar…
Avbryt
Spara