| ??? 02/25/09 09:45 Read: times |
#162816 - Do you want the full corrected source code ? Responding to: ???'s previous message |
Csmg Sarma said:
David Prentice said:
And the bit that drove me mad: You have *buf++ = read(NACK) followed by buf[1] = read(ACK) I meant *buf = read(NACK); buf++; In your original posting you said that you had written the attached code. If you are just copying someone else's code and do not understand how it works, I can copy and paste the corrected version. Otherwise, why not read my explanation ? You will see why you get NUL characters. You will see why a string with a NUL member will only display the preceding characters. Your alternative code is functionally equivalent to the original. David. |
| 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 |



