TIMSK0 |= (1<<OCIE0B); \r
}\r
\r
-static unsigned char temp_count = 0;\r
-static unsigned long raw_temp_0_value = 0;\r
-static unsigned long raw_temp_1_value = 0;\r
-static unsigned long raw_temp_2_value = 0;\r
-static unsigned char temp_state = 0;\r
+\r
\r
// Timer 0 is shared with millies\r
ISR(TIMER0_COMPB_vect)\r
{\r
+ //these variables are only accesible from the ISR, but static, so they don't loose their value\r
+ static unsigned char temp_count = 0;\r
+ static unsigned long raw_temp_0_value = 0;\r
+ static unsigned long raw_temp_1_value = 0;\r
+ static unsigned long raw_temp_2_value = 0;\r
+ static unsigned char temp_state = 0;\r
+ \r
switch(temp_state) {\r
case 0: // Prepare TEMP_0\r
#if (TEMP_0_PIN > -1)\r