Skip to content

Commit c04c949

Browse files
committed
Remove 32767 limit in example and add SdFat example
1 parent 6b89dac commit c04c949

File tree

3 files changed

+476
-4
lines changed

3 files changed

+476
-4
lines changed

examples/Uno_and_above/Uno_and_above.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int input_string(char *str, int max_len) {
9595
return ctr;
9696
}
9797

98-
int input_num() {
98+
int32_t input_num() {
9999
char in[20];
100100
int ctr = 0;
101101
in[ctr] = 0;
@@ -109,7 +109,7 @@ int input_num() {
109109
}
110110
}
111111
in[ctr] = 0;
112-
int ret = atoi(in);
112+
int32_t ret = atol(in);
113113
Serial.print(ret);
114114
Serial.print(F("\n"));
115115
return ret;
@@ -257,7 +257,7 @@ int input_ts(char *datetime) {
257257
}
258258

259259
void log_analog_data() {
260-
int num_entries;
260+
int32_t num_entries;
261261
int dly;
262262
input_db_name();
263263
Serial.print(F("\nRecord count (1 to 32767 on UNO): "));

0 commit comments

Comments
 (0)