Skip to content

Commit

Permalink
Remove 32767 limit in example and add SdFat example
Browse files Browse the repository at this point in the history
  • Loading branch information
siara-cc committed Apr 19, 2020
1 parent 6b89dac commit c04c949
Show file tree
Hide file tree
Showing 3 changed files with 476 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/Uno_and_above/Uno_and_above.ino
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int input_string(char *str, int max_len) {
return ctr;
}

int input_num() {
int32_t input_num() {
char in[20];
int ctr = 0;
in[ctr] = 0;
Expand All @@ -109,7 +109,7 @@ int input_num() {
}
}
in[ctr] = 0;
int ret = atoi(in);
int32_t ret = atol(in);
Serial.print(ret);
Serial.print(F("\n"));
return ret;
Expand Down Expand Up @@ -257,7 +257,7 @@ int input_ts(char *datetime) {
}

void log_analog_data() {
int num_entries;
int32_t num_entries;
int dly;
input_db_name();
Serial.print(F("\nRecord count (1 to 32767 on UNO): "));
Expand Down
Loading

0 comments on commit c04c949

Please sign in to comment.