Fix point_t pointer in Nozzle::zigzag

This commit is contained in:
Scott Lahteine 2017-11-05 18:32:32 -06:00 committed by GitHub
parent 1b870377b1
commit d8ef9bda18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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