2021-06-06 10:12 AM
The LCD hangs when it prints negative numbers lesser than -999, or more specifically, the whole program hangs. Does anyone know the reason for this? I have attached my code below.
(The code is too long to be pasted here, I attached the file.)
Solved! Go to Solution.
2021-06-06 11:36 AM
Try making the buffer big enough to hold all the characters and a trailing NUL
char lcd_data[8]; // try 16
2021-06-06 11:36 AM
Try making the buffer big enough to hold all the characters and a trailing NUL
char lcd_data[8]; // try 16
2021-06-11 08:18 AM
Tried that and solved my problem. Thanks!