]>
Commit | Line | Data |
---|---|---|
54c64fc4 ER |
1 | --- stmbl.c.oryg 2012-06-13 15:01:49.000000000 +0200 |
2 | +++ stmbl.c 2012-06-13 15:12:51.000000000 +0200 | |
3 | @@ -127,7 +127,7 @@ | |
4 | int stmblRecv(uint8_t* buf, unsigned int size) | |
5 | { | |
6 | int rsize = 0; | |
7 | - int rval, i; | |
8 | + int rval; | |
9 | ||
10 | while( rsize < size ) { | |
11 | // Look whether there are still pending bytes in the buffer | |
12 | @@ -210,6 +210,7 @@ | |
13 | ||
14 | int stmblGetVersionNprotection() | |
15 | { | |
16 | + return 0; | |
17 | } | |
18 | ||
19 | ||
20 | @@ -236,7 +237,6 @@ | |
21 | address & 0xFF | |
22 | }; | |
23 | int rval; | |
24 | - int i; | |
25 | ||
26 | if (size > 256) return STMBL_ERR_SIZE; | |
27 | if (!stmblCmdAvail(0x11)) return STMBL_ERR_INVALIDCMD; | |
28 | @@ -308,19 +308,23 @@ | |
29 | ||
30 | int stmblWriteProtect() | |
31 | { | |
32 | + return 0; | |
33 | } | |
34 | ||
35 | ||
36 | int stmblWriteUnprotect() | |
37 | { | |
38 | + return 0; | |
39 | } | |
40 | ||
41 | ||
42 | int stmblReadoutProtect() | |
43 | { | |
44 | + return 0; | |
45 | } | |
46 | ||
47 | ||
48 | int stmblReadoutUnprotect() | |
49 | { | |
50 | + return 0; | |
51 | } | |
52 | --- Makefile~ 2012-06-13 15:17:22.000000000 +0200 | |
53 | +++ Makefile 2012-06-13 15:17:22.000000000 +0200 | |
54 | @@ -10,7 +10,7 @@ | |
55 | LIBS = | |
56 | ||
57 | CFLAGS = -Wall -g | |
58 | - | |
59 | +DESTDIR=/usr/local/bin | |
60 | ||
61 | # Do the stuff as specified above. | |
62 | all: armst | |
63 | @@ -19,7 +19,7 @@ | |
64 | $(CC) -o $@ $(CFLAGS) $(OBJ) $(LIBS) | |
65 | ||
66 | install: armst | |
67 | - install armst /usr/local/bin | |
68 | + install -p armst $(DESTDIR) | |
69 | ||
70 | clean: | |
71 | rm *~ *.o |