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 {
9191 _lcd->clear ();
9292
9393 // TODO: Remove all the prints!
94-
9594 // Print the message to the serial
96- Serial.print (" Writing message to LCD: " );
95+ Serial.print (" Writing message to Char. LCD: " );
9796 Serial.println (message);
9897
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-
10798 size_t message_length = strlen (message);
10899 size_t cur_idx = 0 ; // Current index in the message
109100
@@ -116,22 +107,7 @@ class drvOutCharLcd : public drvOutputBase {
116107 for (int cur_col = 0 ; cur_col < _cols && cur_idx < message_length;
117108 cur_col++) {
118109 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-
133110 if (c == ' \\ ' && message[cur_idx + 1 ] == ' n' ) {
134- Serial.println (" Found newline, moving to next row" );
135111 cur_idx += 2 ; // Skip the '\n' character in the buffer
136112 break ; // and move to the next row
137113 } else if (c == 194 && message[cur_idx + 1 ] == 176 ) {
You can’t perform that action at this time.
0 commit comments