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