Skip to content

SdFat flush instead of delay #27

Description

@awickert

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions