Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SdFat flush instead of delay #27

Open
awickert opened this issue Apr 28, 2017 · 0 comments
Open

SdFat flush instead of delay #27

awickert opened this issue Apr 28, 2017 · 0 comments

Comments

@awickert
Copy link
Member

awickert commented Apr 28, 2017

No more guesswork

  if (first_log_after_booting_up){
    end_logging_to_headerfile();
    first_log_after_booting_up = false; // the job is done.
  }
  delay(30);
  // THIS DELAY IS ***CRITICAL*** -- WITHOUT IT, THERE IS NOT SUFFICIENT
  // TIME TO WRITE THE DATA TO THE SD CARD!
  // Check right before going back to sleep if there has been a rain
  // gauge bucket tip while it has been on
  // This is a temporary solution!
  // (May be able to reduce delay if not going back to sleep -- i.e., write
  //  to card while logging next step.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant