??? 02/26/09 13:39 Modified: 02/26/09 13:41 Read: times |
#162887 - write program, rather than code... Responding to: ???'s previous message |
You might avoid part of your errors by writing programs "conservatively". For example, I would write your loop as:
for (num = 1; num < (size - 1); num++) { buf[num] = read(ACK); } I would avoid the "cool" properties of the for loop (and also pointer arithmetic, as long as arrays are concerned, although the latter is arguable). 0.02€ (which is much, much more than 0.02SKK, the currency we abandoned in favour of Euro two months ago, so my rates went way up ;-) ) JW |
Topic | Author | Date |
AT24C512 Sequential Read failed!! | 01/01/70 00:00 | |
the IIC engine is identical ... | 01/01/70 00:00 | |
Sample code | 01/01/70 00:00 | |
what are the symptoms? | 01/01/70 00:00 | |
symptoms | 01/01/70 00:00 | |
A common mistake... | 01/01/70 00:00 | |
Your code looks fine | 01/01/70 00:00 | |
It took me ages ! | 01/01/70 00:00 | |
uint8_t range | 01/01/70 00:00 | |
confusion | 01/01/70 00:00 | |
you use uint8_t in your read_seq () | 01/01/70 00:00 | |
Do you want the full corrected source code ? | 01/01/70 00:00 | |
my own code | 01/01/70 00:00 | |
An explanation | 01/01/70 00:00 | |
code update | 01/01/70 00:00 | |
diff is your friend | 01/01/70 00:00 | |
size -1 | 01/01/70 00:00 | |
write program, rather than code... | 01/01/70 00:00 | |
It's Working![]() | 01/01/70 00:00 |