| Rev 1452 | Rev 1493 | ||
|---|---|---|---|
| Line 137... | Line 137... | ||
| 137 | set_timer0(0); |
137 | set_timer0(0); |
| 138 | while((!input(STOP4)) && (input(BUTTON2))) |
138 | while((!input(STOP4)) && (input(BUTTON2))) |
| 139 | section[3] = (time << 16) + get_timer0(); |
139 | section[3] = (time << 16) + get_timer0(); |
| 140 | |
140 | |
| 141 | // odesli namerene hodnoty |
141 | // odesli namerene hodnoty |
| 142 | printf(usb_cdc_putc, "\n\r %7lu %7.0f %7.0f %7.0f %7.0f", run, section[0]/15.625, section[1]/15.625, section[2]/15.625, section[3]/15.625); |
142 | printf(usb_cdc_putc, "\n\r %7lu %7.1f %7.1f %7.1f %7.1f", run, section[0]/15.625, section[1]/15.625, section[2]/15.625, section[3]/15.625); //konstanta je kvuli prevodu do rozzumnych jednotek [ms] |
| 143 | } |
143 | } |
| 144 | } |
144 | } |
| 145 | } |
145 | } |