From 64e00e1f77d52147eb2776695ce190cb2a94135c Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 24 Jun 2013 12:57:12 +0200 Subject: [PATCH] terminal: Fix init. --- terminal.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/terminal.c b/terminal.c index 94f671a..8ca8cdd 100644 --- a/terminal.c +++ b/terminal.c @@ -25,14 +25,14 @@ int main(int argc,char **argv) { for (;;) { // GPIB -> obrazovka - if (init) + if (init) { fprintf(stderr,"Inicializuji port... "); - lptgpib_command(UNL); - lptgpib_command(MLA+0); - lptgpib_command(MTA+zdroj_adresa); - if (init) + lptgpib_command(UNL); + lptgpib_command(MLA+0); + lptgpib_command(MTA+zdroj_adresa); fprintf(stderr,"hotovo.\n"); - init=0; + init=0; + } put_control(TRI | NDAC); /* clear NRFD */ usleep(1000000/10); if (get_control()&DAV) { /* wait for DAV */ -- 1.8.3.1