/Designs/MRAKOMER4/SW/irmrak4.c
144,10 → 144,6
int1 repeat; // Status flags
int1 automatic;
 
//KAKL!!!
int8 SN[10];
 
 
output_high(DOME); // Close Dome
output_low(HEATING); // Heating off
 
274,7 → 270,7
delay(MEASURE_DELAY); // Delay to a next measurement
 
{
//KAKL!!! int8 SN[10];
int8 SN[10];
int8 n;
 
touch_present(); //Issues a reset and returns true if the touch device is there.
294,7 → 290,6
}
}
/*
if(automatic) // Solve automatic mode
{
if (heatTime==0)
313,7 → 308,7
if(to1<-10000) open=0; // Sensor Error protection
if(tTouch<-10000) open=0;
}
*/
 
{ // printf
char output[8]; // Output buffer
int8 j; // String pointer
338,21 → 333,8
j=0; while(output[j]!=0) { delay(SEND_DELAY); putc(output[j]); check^=output[j++]; }
sprintf(output,"%u \0", open);
j=0; while(output[j]!=0) { delay(SEND_DELAY); putc(output[j]); check^=output[j++]; }
//KAKL!!! sprintf(output,"*%X\r\n\0", check);
sprintf(output,"*%X \0", check);
sprintf(output,"*%X\r\n\0", check);
j=0; while(output[j]!=0) { delay(SEND_DELAY); putc(output[j++]); }
{
int n;
for (n=0;n<9;n++)
{
sprintf(output,"%X \0", SN[n]);
j=0; while(output[j]!=0) { delay(SEND_DELAY); putc(output[j++]); }
}
}
sprintf(output,"\r\n\0");
j=0; while(output[j]!=0) { delay(SEND_DELAY); putc(output[j++]); }
 
delay(SEND_DELAY);
}