Template
comments for todos
This commit is contained in:
@@ -258,8 +258,8 @@ time_t getdatetime(){
|
||||
// loop is called repeatedly
|
||||
// static vars to persist between calls
|
||||
void loop(void) {
|
||||
int i;
|
||||
static int t=0;
|
||||
int i;
|
||||
char fname[16];
|
||||
|
||||
// these buffers are used for message processing
|
||||
@@ -316,6 +316,7 @@ void loop(void) {
|
||||
if (msg1>0) {
|
||||
myFile.print("G:");
|
||||
myFile.write(GPSRx,msg1);
|
||||
// extract GPS time for RTC adjust
|
||||
msg1=0;
|
||||
i1=0;
|
||||
if (MSG_OVFL) {
|
||||
@@ -358,6 +359,9 @@ void loop(void) {
|
||||
t=t+1;
|
||||
}
|
||||
|
||||
// closing myFile requires starting a new FS
|
||||
// then opening a new FS (myFiles)
|
||||
// then opening a new file (myFile)
|
||||
if (!myFile) { /* open a new file */
|
||||
myDrive1.begin();
|
||||
myDrive1.startFilesystems();
|
||||
|
||||
Reference in New Issue
Block a user