diff options
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r-- | Tonokip_Firmware/Tonokip_Firmware.pde | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 1756f22..81a73ae 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -164,7 +164,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)) @@ -280,7 +280,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."); @@ -1220,8 +1220,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(); |