Merge pull request #584 from XPila/MK25

new XYZ calibration FIX
This commit is contained in:
XPila 2018-03-27 20:10:07 +02:00 committed by GitHub
commit c7818abbe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -8,5 +8,8 @@
#define ADC_OVRSAMPL 16 //oversampling multiplier
#define ADC_CALLBACK adc_ready //callback function ()
//SM4 configuration
#define SM4_DEFDELAY 500 //default step delay [us]
#endif //_CONFIG_H

View File

@ -27,6 +27,9 @@
#include "stepper.h"
#endif
#define ENABLE_TEMPERATURE_INTERRUPT() TIMSK0 |= (1<<OCIE0B)
#define DISABLE_TEMPERATURE_INTERRUPT() TIMSK0 &= ~(1<<OCIE0B)
// public functions
void tp_init(); //initialize the heating
void manage_heater(); //it is critical that this is called periodically.