git://git.jankratochvil.net
/
lptgpib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b58137c
)
Revert "terminal: Fix init."
author
Jan Kratochvil
<jan.kratochvil@redhat.com>
Wed, 26 Jun 2013 15:36:59 +0000
(17:36 +0200)
committer
Jan Kratochvil
<jan.kratochvil@redhat.com>
Wed, 26 Jun 2013 15:36:59 +0000
(17:36 +0200)
This reverts commit
64e00e1f77d52147eb2776695ce190cb2a94135c
.
terminal.c
patch
|
blob
|
history
diff --git
a/terminal.c
b/terminal.c
index
8ca8cdd
..
94f671a
100644
(file)
--- 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);
+ lptgpib_command(UNL);
+ lptgpib_command(MLA+0);
+ lptgpib_command(MTA+zdroj_adresa);
+ if (init)
fprintf(stderr,"hotovo.\n");
- init=0;
- }
+ init=0;
put_control(TRI | NDAC); /* clear NRFD */
usleep(1000000/10);
if (get_control()&DAV) { /* wait for DAV */