Skip to content

Commit

Permalink
Version 0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
repetier committed Jan 30, 2012
1 parent 4d60007 commit cfde1ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.o
*.d

.DS_Store
15 changes: 6 additions & 9 deletions Repetier/Repetier.pde
Original file line number Diff line number Diff line change
Expand Up @@ -1109,13 +1109,6 @@ END_INTERRUPT_PROTECTED
axis_interval[3] = time_for_move/p->delta[3];
p->fullSpeed = p->distance*inv_time_s;

//Only enable axis that are moving. If the axis doesn't need to move then it can stay disabled depending on configuration.
// TODO: maybe it's better to refactor into a generic enable(int axis) function, that will probably take more ram,
// but will reduce code size
if(p->dir & 16) enable_x();
if(p->dir & 32) enable_y();
if(p->dir & 64) enable_z();
if(p->dir & 128) extruder_enable();

//long interval = axis_interval[primary_axis]; // time for every step in ticks with full speed
byte is_print_move = (p->dir & 136)==136; // are we printing
Expand Down Expand Up @@ -1316,6 +1309,11 @@ inline long bresenham_step() {
--lines_count;
return(cur->accelerationPrim); // waste some time for path optimization to fill up
} // End if WARMUP
//Only enable axis that are moving. If the axis doesn't need to move then it can stay disabled depending on configuration.
if(cur->dir & 16) enable_x();
if(cur->dir & 32) enable_y();
if(cur->dir & 64) enable_z();
if(cur->dir & 128) extruder_enable();
cur->joinFlags |= FLAG_JOIN_END_FIXED | FLAG_JOIN_START_FIXED; // don't touch this segment any more, just for safety
#if USE_OPS==1
if(printer_state.opsMode) { // Enabled?
Expand Down Expand Up @@ -1582,11 +1580,10 @@ inline long bresenham_step() {
lines_pos++;
if(lines_pos>=MOVE_CACHE_SIZE) lines_pos=0;
cur = 0;
if(!--lines_count) {
--lines_count;
if(DISABLE_X) disable_x();
if(DISABLE_Y) disable_y();
if(DISABLE_Z) disable_z();
}
}
#ifdef DEBUG_FREE_MEMORY
check_mem();
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.46
DISABLE_(XYZ) now works on a move basis as expected, not on a job basis.
Only Repetier.pde was changed.

Version 0.45 28-01-2012
Fan settings don't wait for moves to finish any more. This could cause a longer
stop making blobs possible.
Expand Down

0 comments on commit cfde1ed

Please sign in to comment.