/Designs/MRAKOMER4/SW/irmrak4.c
3,6 → 3,8
#define ID "$Id$"
#include "irmrak4.h"
 
#CASE // Case sensitive compiler
 
#define MAXHEAT 20 // Number of cycles for heating
#define MAXOPEN 20 // Number of cycles for dome open
#define MEASURE_DELAY 6000 // Delay to a next measurement
69,7 → 71,7
SMB_TX_byte(addr);
arr[2]=SMB_RX_byte(ACK); //Read low data,master must send ACK
arr[1]=SMB_RX_byte(ACK); //Read high data,master must send ACK
temp=MAKE16(arr[1],arr[2]);
temp=make16(arr[1],arr[2]);
crc=SMB_RX_byte(NACK); //Read PEC byte, master must send NACK
SMB_STOP_bit(); //Stop condition
 
211,7 → 213,7
j=0; while(output[j]!=0) { delay(SEND_DELAY); putc(output[j++]); }
}
if(heating>0) { output_high(HEATING); } else { output_low(HEATING); }
if(heat>0) { output_high(HEATING); } else { output_low(HEATING); }
 
delay(MEASURE_DELAY); // Delay to a next measurement
//---WDT