Skip to content

Commit 60abbd2

Browse files
committed
enhance example
1 parent e9b516b commit 60abbd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/Uno_and_above/Uno_and_above.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void inputDBName() {
266266
input_string(filename, sizeof(filename));
267267
}
268268

269-
int inputTimestamp(char *datetime) {
269+
int input_ts(char *datetime) {
270270
Serial.print(F("\nEnter timestamp (YYYY-MM-DD HH:MM:SS.SSS): "));
271271
return input_string(datetime, 23);
272272
}
@@ -293,9 +293,9 @@ void loop() {
293293
num_entries = input_num();
294294
Serial.print(F("\nNumber of analog pins (from A0): "));
295295
int8_t analog_pin_count = input_num();
296-
Serial.print(F("\nCurrent time (YYYY-MM-DD HH:MM:SS.SSS): "));
296+
Serial.print(F("\nCurrent time (YYYY-MM-DD HH:MM:SS.000): "));
297297
char ts[24];
298-
if (input_string(ts, 23) < 23) {
298+
if (input_ts(ts) < 23) {
299299
Serial.print(F("Input full timestamp\n"));
300300
return;
301301
}
@@ -400,7 +400,7 @@ void loop() {
400400
Serial.print(F("\nEnter RowID (1 to 32767 on UNO): "));
401401
uint32_t rowid = input_num();
402402
} else
403-
dt_len = inputTimestamp(srch_datetime);
403+
dt_len = input_ts(srch_datetime);
404404
Serial.print(F("No. of records to display: "));
405405
num_entries = input_num();
406406
unsigned long start = millis();

0 commit comments

Comments
 (0)