summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-05-12 09:35:29 +0200
committerkliment <kliment.yanev@gmail.com>2011-05-12 09:35:29 +0200
commit178c78f842e532505b7df28fb8009f81dea2c292 (patch)
treed29192a70cf410bad38aab44c88922dbc8634f52 /Tonokip_Firmware
parentb83767ec553a56037d122835c8d9198995a6b02c (diff)
Make heater check more frequent during moves, intialize SD faster to avoid confusing repsnapper.
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde
index 83038f5..94f04e4 100644
--- a/Tonokip_Firmware/Tonokip_Firmware.pde
+++ b/Tonokip_Firmware/Tonokip_Firmware.pde
@@ -163,7 +163,7 @@ unsigned long stepper_inactive_time = 0;
if(root.isOpen())
root.close();
if (!card.init(SPI_FULL_SPEED,SDSS)){
- if (!card.init(SPI_HALF_SPEED,SDSS))
+ //if (!card.init(SPI_HALF_SPEED,SDSS))
Serial.println("SD init fail");
}
else if (!volume.init(&card))
@@ -283,7 +283,7 @@ void loop()
write_command(cmdbuffer[bufindr]);
Serial.println("ok");
}else{
- file.sync(); // maybe this call is not needed
+ file.sync();
file.close();
savetosd=false;
Serial.println("Done saving file.");
@@ -1148,8 +1148,8 @@ void linear_move(unsigned long x_steps_remaining, unsigned long y_steps_remainin
}
}
- //If more that half second is passed since previous heating check, manage it
- if(!accelerating && (millis() - previous_millis_heater) >= 500 ) {
+ //If more that 50ms have passed since previous heating check, adjust temp
+ if(!accelerating && (millis() - previous_millis_heater) >= 50 ) {
manage_heater();
previous_millis_heater = millis();