Skip to content

Instantly share code, notes, and snippets.

@nishanc
Last active May 16, 2021 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/1bfdd0361e33cb98516d51bbd0ffb509 to your computer and use it in GitHub Desktop.
Save nishanc/1bfdd0361e33cb98516d51bbd0ffb509 to your computer and use it in GitHub Desktop.
void save_photo()
{
if (timeinfo.tm_year < (2016 - 1900) || internet_connected == false) { // if no internet or time not set
save_photo_numbered(); // filenames in numbered order
} else {
save_photo_dated(); // filenames with date and time
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment