/**************************************************************************************************** RepRapFirmware - Heat This is all the code to deal with heat and temperature. ----------------------------------------------------------------------------------------------------- Version 0.1 18 November 2012 Adrian Bowyer RepRap Professional Ltd http://reprappro.com Licence: GPL ****************************************************************************************************/ #include "RepRapFirmware.h" Heat::Heat(Platform* p, GCodes* g) { platform = p; gCodes = g; active = false; } void Heat::Init() { lastTime = platform->Time(); //frac = 0; //inc = 0.01; active = true; } void Heat::Exit() { active = false; } void Heat::Spin() { if(!active) return; unsigned long t = platform->Time(); if(t - lastTime < 3000) return; lastTime = t; }