File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -91,19 +91,10 @@ class drvOutCharLcd : public drvOutputBase {
91
91
_lcd->clear ();
92
92
93
93
// TODO: Remove all the prints!
94
-
95
94
// Print the message to the serial
96
- Serial.print (" Writing message to LCD: " );
95
+ Serial.print (" Writing message to Char. LCD: " );
97
96
Serial.println (message);
98
97
99
- // Debug: Print each character's ASCII value
100
- Serial.print (" Character values: " );
101
- for (size_t i = 0 ; i < strlen (message); i++) {
102
- Serial.print ((int )message[i]);
103
- Serial.print (" " );
104
- }
105
- Serial.println ();
106
-
107
98
size_t message_length = strlen (message);
108
99
size_t cur_idx = 0 ; // Current index in the message
109
100
@@ -116,22 +107,7 @@ class drvOutCharLcd : public drvOutputBase {
116
107
for (int cur_col = 0 ; cur_col < _cols && cur_idx < message_length;
117
108
cur_col++) {
118
109
char c = message[cur_idx];
119
-
120
- // Debug: Print the character we're processing
121
- Serial.print (" Processing char at position " );
122
- Serial.print (cur_idx);
123
- Serial.print (" : '" );
124
- if (c == ' \n ' ) {
125
- Serial.print (" \\ n" );
126
- } else {
127
- Serial.print (c);
128
- }
129
- Serial.print (" ' (" );
130
- Serial.print ((int )c);
131
- Serial.println (" )" );
132
-
133
110
if (c == ' \\ ' && message[cur_idx + 1 ] == ' n' ) {
134
- Serial.println (" Found newline, moving to next row" );
135
111
cur_idx += 2 ; // Skip the '\n' character in the buffer
136
112
break ; // and move to the next row
137
113
} else if (c == 194 && message[cur_idx + 1 ] == 176 ) {
You can’t perform that action at this time.
0 commit comments