summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authormidopple <mdoppler@gmx.at>2012-05-01 23:01:05 -0700
committermidopple <mdoppler@gmx.at>2012-05-01 23:01:05 -0700
commit5a60fcd6f57d23dbaa1954546e5f869f223854db (patch)
treea22d8e6dfb87703c6c275afcbcd20cbe756aa1e4 /Sprinter
parent468dfeea600b3c8870df136e300c294c08ed7d06 (diff)
parentd651a6cb90a205b1ec203d756663a9ffdc9b485a (diff)
Merge pull request #168 from kliment/master
Bug: turn on SD_FAST_XFER_AKTIV and compilation fails if PID is
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/Sprinter.pde4
1 files changed, 3 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index b0617f0..b5d0489 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -392,7 +392,7 @@ unsigned char manage_monitor = 255;
#ifdef SD_FAST_XFER_AKTIV
#ifdef PIDTEMP
- extern int g_heater_pwm_val;
+ extern volatile unsigned char g_heater_pwm_val;
#endif
void fast_xfer()
@@ -404,7 +404,9 @@ unsigned char manage_monitor = 255;
if(HEATER_0_PIN > -1) WRITE(HEATER_0_PIN,LOW);
if(HEATER_1_PIN > -1) WRITE(HEATER_1_PIN,LOW);
+ #ifdef PIDTEMP
g_heater_pwm_val = 0;
+ #endif
lastxferchar = 1;
xferbytes = 0;