Rev 3237 Rev 3264
Line 16... Line 16...
16 { 16 {
17 if (sync==1) 17 if (sync==1)
18 { 18 {
19 output_high(SYNC_OUTPUT); 19 output_high(SYNC_OUTPUT);
20 output_toggle(LED2); 20 output_toggle(LED2);
21 delay_us(5); 21 delay_us(50); // na svvakove staci 5us v Upici bylo potreba energii zvednout
22 output_low(SYNC_OUTPUT); 22 output_low(SYNC_OUTPUT);
23 sync=0; 23 sync=0;
24 } 24 }
25 output_toggle(LED3); 25 output_toggle(LED3);
26 } 26 }
Line 69... Line 69...
69 if ((sec=='9')) {sync=1; continue;} 69 if ((sec=='9')) {sync=1; continue;}
70 getch(); 70 getch();
71 getch(); 71 getch();
72 getch(); 72 getch();
73 getch(); 73 getch();
74 // getch(); GPS01A ma A na 18. znaku, ne na 19. 74 // getch(); GPS01A ma A na 18. znaku, ne na 19.
75 if ('A'!=getch()) 75 if ('A'!=getch())
76 { 76 {
77 output_high(LED4); // Neni FIX 77 output_high(LED4); // Neni FIX
78 if (sec=='0') {sync=1;} // Extra click hlasi chybu 78 if (sec=='0') {sync=1;} // Extra click hlasi chybu
79 } 79 }