Subversion Repositories f9daq

Rev

Rev 207 | Rev 217 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 207 Rev 210
Line 50... Line 50...
50
        MIKRO_Close ();
50
        MIKRO_Close ();
51
        return 0;
51
        return 0;
52
}
52
}
53
 
53
 
54
 
54
 
-
 
55
char strbuf[0xFF];
-
 
56
 
-
 
57
int gLog=0;
-
 
58
 
-
 
59
int printf(const char *format, ...) {
-
 
60
  va_list aptr;
-
 
61
  int ret;
-
 
62
  FILE *flog;
-
 
63
 
-
 
64
  va_start(aptr, format);
-
 
65
  ret = vsprintf(strbuf, format, aptr);
-
 
66
  va_end(aptr);
-
 
67
  SetCtrlVal(ph,PANEL_STDIO,strbuf);
-
 
68
 
-
 
69
  if (gLog) {
-
 
70
    flog = fopen ("stdio.log", "a");
-
 
71
    fprintf (flog, "%s", strbuf);
-
 
72
    fclose (flog);
-
 
73
  }
-
 
74
  return(ret);
-
 
75
}
55
 
76
 
56
 
77
 
57
 
78
 
58
static void start_timer (double tout) {
79
static void start_timer (double tout) {
59
        SetCtrlAttribute (ph, PANEL_TIMER, ATTR_INTERVAL, tout);
80
        SetCtrlAttribute (ph, PANEL_TIMER, ATTR_INTERVAL, tout);