We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9817348 commit c36f98cCopy full SHA for c36f98c
1 file changed
src/Force.cpp
@@ -132,10 +132,7 @@ void Force::begin() {
132
tft.setRotation(3);
133
tft.fillScreen(ST77XX_BLACK);
134
135
- // Initialize SD
136
- SdFile::dateTimeCallback(dateTime);
137
- CreateDataFile();
138
- writeHeader();
+
139
140
// Initialize RTC
141
if (!rtc.initialized() || rtc.lostPower()) {
@@ -168,9 +165,17 @@ void Force::begin() {
168
165
scale2.tare();
169
166
scale2.set_scale(calibration_factor);
170
167
171
//start up menu
172
start_up_menu();
173
174
+ // Initialize SD
175
+ SdFile::dateTimeCallback(dateTime);
176
+ CreateDataFile();
177
+ writeHeader();
178
179
}
180
181
/////////////////////////////////////////////////////////////////////////
0 commit comments