desolder.ino 663 B

123456789101112131415161718
  1. /* desolder.ino handles desoldering (aka just a basic heated plate) procedures */
  2. void handleDesolderProcedures() {
  3. bool tempReached = updateHeaterPowerState(); //This take around 100ms
  4. if (reflowStages == 10 && tempReached) {
  5. //Temperature reached. Stop red blinking and light up red light
  6. fastblinkRed = false;
  7. digitalWrite(LED_REFLOW, HIGH);
  8. desolderCountdown = MAX_CONTINUE_OPR_TIME; //Start counting down max operation time
  9. reflowStages = 11; //Move to consistent heating mode
  10. }
  11. if (desolderCountdown == 0) {
  12. enterStandbyMode();
  13. desolderCountdown = 0; //Prevent underflow
  14. }
  15. desolderCountdown--;
  16. }