I'm trying to do an application to read bytes from a serial port. All work except one thing. There's a problem with printf that I can't debug.
It's supposed to print like below:
24-Filename: test-i2c.bin Begin: 0000 Length: 0000 Autostart: 0000
Instead, it prints like below:
Begin: 0000 Len: 0000 Autostart: 0000
Here's the link to the code:
https://drive.google.com/file/d/1tHx_rlAkCgr7jk63LzPzAOijSgH_YXZw/view?usp=drive_link
I commented the code to explain the bug in more details. See function GetData in file tape.c
Jacques Pelletier
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Solved it. A carriage return in a string throwed a curve ball to printf. That was another tough nut to crack!
Are you sure? yes | no