Skip to content

Commit 23550d3

Browse files
committed
README.md
1 parent 99a758a commit 23550d3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ char * csv_str = " test a , test b \n" // header names include leading and t
185185
"1,2\n"
186186
"3,4\n";
187187

188-
CSV_Parser cp(csv_str, "ss");
189-
char **a = (char**)cp["test a"]; // notice how "test a" is used instead of " test a "
190-
char **b = (char**)cp["test b"];
188+
CSV_Parser cp(csv_str, "cc");
189+
int8_t *a = (int8_t*)cp["test a"]; // notice how "test a" is used instead of " test a "
190+
int8_t *b = (int8_t*)cp["test b"];
191191
for (int i = 0; i < cp.getRowsCount(); i++) {
192-
Serial.println(a[i]);
193-
Serial.println(b[i]);
192+
Serial.println(a[i], DEC);
193+
Serial.println(b[i], DEC);
194194
}
195195
```
196196

0 commit comments

Comments
 (0)