Parent Directory | Revision Log
Bug in seltrigger time conversion (selfdelay.c) fixed
1 | mocchiut | 1.1 | #include <delay.h> |
2 | |||
3 | int delay(int selftrig){ | ||
4 | int i; | ||
5 | i = 0; | ||
6 | mocchiut | 1.2 | int del = 200; |
7 | mocchiut | 1.1 | // |
8 | while ((i < 16) && ((selftrig & (0x8000>>i)) == 0)) { | ||
9 | del += 50; | ||
10 | i++; | ||
11 | }; | ||
12 | mocchiut | 1.2 | if (i > 15) del = 1000; |
13 | mocchiut | 1.1 | return(del); |
14 | } | ||
15 | mocchiut | 1.2 | |
16 |
ViewVC Help | |
Powered by ViewVC 1.1.23 |