Skip to content

Commit e07fa9f

Browse files
authored
Update README.md
There was a bug where the call to `cp.GetRowsCount()` was incorrectly using an uppercase `G` rather than a lowercase `g`. This causes the error below. I fixed this to be `cp.getRowsCount()`. ``` C:\Users\zam26\Documents\Code\Arduino\Projects\SunriseSunset\SunriseSunset.ino: In function 'void setup()': SunriseSunset:47:26: error: 'class CSV_Parser' has no member named 'GetRowsCount'; did you mean 'getRowsCount'? for (int i = 0; i < cp.GetRowsCount(); i++) { ^~~~~~~~~~~~ getRowsCount exit status 1 'class CSV_Parser' has no member named 'GetRowsCount'; did you mean 'getRowsCount'? ```
1 parent 5085fb6 commit e07fa9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ char *chars = (char*)cp["my_chars"];
6969
float *floats = (float*)cp["my_floats"];
7070
int32_t *longs_from_hex = (int32_t*)cp["my_hex"]; // CSV_Parser stores hex as longs (casting to int* would point to wrong address when ints[ind] is used)
7171

72-
for (int i = 0; i < cp.GetRowsCount(); i++) {
72+
for (int i = 0; i < cp.getRowsCount(); i++) {
7373
Serial.print(strings[i]); Serial.print(" - ");
7474
Serial.print(longs[i], DEC); Serial.print(" - ");
7575
Serial.print(ints[i], DEC); Serial.print(" - ");

0 commit comments

Comments
 (0)