@@ -73,8 +73,8 @@ void setup() { // Arduino standard setup method
73
73
if (!deviceStatus) { // If it didn't start
74
74
Serial.println (F (" Oscillator did not start, trying again." )); // Show error and
75
75
delay (1000 ); // wait for a second
76
- } // of if-then oscillator didn't start
77
- } // of while the oscillator is off
76
+ } // of if-then oscillator didn't start
77
+ } // of while the oscillator is off
78
78
MCP7940.adjust (); // Set to library compile Date/Time
79
79
Serial.println (F (" Enter the following serial commands:" ));
80
80
Serial.println (F (" SETDATE yyyy-mm-dd hh:mm:ss" ));
@@ -87,15 +87,15 @@ void setup() { // Arduino standard setup method
87
87
** and acted upon **
88
88
***************************************************************************************************/
89
89
void readCommand () {
90
- static uint8_t inputBytes = 0 ; // Variable for buffer position
91
- while (Serial.available ()) { // Loop while incoming serial data
90
+ static uint8_t inputBytes = 0 ; // Variable for buffer position
91
+ while (Serial.available ()) { // Loop while incoming serial data
92
92
inputBuffer[inputBytes] = Serial.read (); // Get the next byte of data
93
93
if (inputBuffer[inputBytes] != ' \n ' &&
94
- inputBytes < SPRINTF_BUFFER_SIZE) // keep on reading until a newline
95
- inputBytes++; // shows up or the buffer is full
94
+ inputBytes < SPRINTF_BUFFER_SIZE) // keep on reading until a newline
95
+ inputBytes++; // shows up or the buffer is full
96
96
else {
97
97
inputBuffer[inputBytes] = 0 ; // Add the termination character
98
- for (uint8_t i = 0 ; i < inputBytes; i++) // Convert the whole input buffer
98
+ for (uint8_t i = 0 ; i < inputBytes; i++) // Convert the whole input buffer
99
99
inputBuffer[i] = toupper (inputBuffer[i]); // to uppercase characters
100
100
Serial.print (F (" \n Command \" " ));
101
101
Serial.write (inputBuffer);
@@ -132,7 +132,7 @@ void readCommand() {
132
132
MCP7940.adjust (
133
133
DateTime (year, month, day, hour, minute, second)); // Adjust the RTC date/time
134
134
Serial.print (F (" Date has been set." ));
135
- } // of if-then-else the date could be parsed
135
+ } // of if-then-else the date could be parsed
136
136
break ; //
137
137
/* ******************************************************************************************
138
138
** Calibrate the RTC and reset the time **
0 commit comments