You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for this code! Helping me learn how I2C works on Intel Linux box.
I believe your code does not correctly terminate the character string from the command line in some cases.
Simple fix that seems to handle all cases and still yields correct display:
//Setup the text argument that was passed to main. remove null and add some extra spaces.
for(i = 0; i < (strlen(argv[3])) ; i++){
text[i] = argv[3][i];
}
for(i = 0; i < 4 ; i++){
text[strlen(argv[3])+i] = 32;
}
// terminate string
text[strlen(argv[3])+4] = 0;
Realize this is very old code, but still helpful. Again, thx!
The text was updated successfully, but these errors were encountered:
Hello, thanks for this code! Helping me learn how I2C works on Intel Linux box.
I believe your code does not correctly terminate the character string from the command line in some cases.
Simple fix that seems to handle all cases and still yields correct display:
Realize this is very old code, but still helpful. Again, thx!
The text was updated successfully, but these errors were encountered: