Last active
May 16, 2021 07:57
-
-
Save nishanc/1bfdd0361e33cb98516d51bbd0ffb509 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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