Skip to content

Commit

Permalink
CSV correctly named
Browse files Browse the repository at this point in the history
Library now correctly titles csv file with device number.
  • Loading branch information
bamatika authored Aug 10, 2021
1 parent 9817348 commit c36f98c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Force.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ void Force::begin() {
tft.setRotation(3);
tft.fillScreen(ST77XX_BLACK);

// Initialize SD
SdFile::dateTimeCallback(dateTime);
CreateDataFile();
writeHeader();


// Initialize RTC
if (!rtc.initialized() || rtc.lostPower()) {
Expand Down Expand Up @@ -168,9 +165,17 @@ void Force::begin() {
scale2.tare();
scale2.set_scale(calibration_factor);



//start up menu
start_up_menu();
tft.fillScreen(ST77XX_BLACK);

// Initialize SD
SdFile::dateTimeCallback(dateTime);
CreateDataFile();
writeHeader();

}

/////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit c36f98c

Please sign in to comment.